#2D02CA

A color in the Violet family

#2d02ca is a color in the Violet family: RGB(45, 2, 202), HSL(253°, 98%, 40%), CMYK(78%, 99%, 0%, 21%). Closest named color: mediumblue. Contrast is 10.64:1 on white and 1.97:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#2d02ca
RGBrgb(45 2 202)
RGB (legacy)rgb(45, 2, 202)
RGB %rgb(18% 1% 79%)
HSLhsl(253 98% 40%)
HSV / HSBhsv(253, 99%, 79%)
HWBhwb(253 1% 21%)
CMYKcmyk(78%, 99%, 0%, 21%)
CIELAB (D50)lab(24.35 57.97 -90.4)
LCHlch(24.35 107.39 302.67)
OKLaboklab(0.3961 0.0117 -0.2523)
OKLCHoklch(0.3961 0.2525 272.66)
Decimal2949834

Properties

Color ToneViolet
Closest named colormediumblue ΔE 4.3
Closest web-safe color#3300cc
Hue253°
Saturation (HSL / HSV)98% / 99%
Lightness (HSL)40%
Brightness or Value (HSV)79%
Luminance (Rec.601 / Rec.709)15% / 10%
Relative luminance (WCAG)0.0487
Red / Green / Blue45 / 2 / 202

WCAG 2.2 Contrast Ratio

On White (#ffffff)
10.64:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.97:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 91.9 / -10.5 · As background with white / black text: Lc -96.2 / 12

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #2d02ca;
  --color-brand-oklch: oklch(39.61% 0.2525 272.66);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(45 2 202 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2d02ca] text-[#2d02ca] border-[#2d02ca]">