#2E21A8#2E21A8

#2E21A8 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.7% C 0.200 H 275.2°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2E21A8
RGBrgb(46, 33, 168)
HSLhsl(246, 67%, 39%)
HSVhsv(246, 80%, 66%)
CMYKcmyk(72.6%, 80.4%, 0%, 34.1%)
CIE-LABlab(25.24, 47.87, -69.01)
CIE-LCHlch(25.24, 83.99, 304.75°)
OKLaboklab(37.67% 0.018 -0.1995)
OKLCHoklch(37.67% 0.2 275.2)
XYZxyz(8.7361, 4.4949, 37.4454)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21A8 #9BA821
analogous
#2158A8 #2E21A8 #7221A8
triadic
#2E21A8 #A82E21 #21A82E
tetradic
#2E21A8 #A82158 #9BA821 #21A872
square
#2E21A8 #A82158 #9BA821 #21A872
split-complementary
#2E21A8 #A87221 #58A821
monochromatic
#120D42 #201775 #2E21A8 #4030D6 #6F63E0

Accessibility & contrast

On white

11.06
#2E21A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2E21A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E21A8
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21A8#FFFFFF#000000##FFFFFF
##2E21A81.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e21a8;
/* rgb */ color: rgb(46, 33, 168);
/* oklch */ color: oklch(37.7% 0.200 275.2);
Tailwind
colors: {
  custom: {
    50: '#7b60c3',
    500: '#2e21a8',
    950: '#000000',
  },
}
SCSS
$custom: #2e21a8;
$custom-light: #7b60c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21a8",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 245.778,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37668,
    "c": 0.20036,
    "h": 275.2
  },
  "luminance": 0.04496
}

Semantic roles & 50–950 ramp

primary
#2E21A8
secondary
#BCC55F
accent
#EA3ED9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2E21A8

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2E21A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva