#2E21A1#2E21A1

#2E21A1 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.9% C 0.192 H 275.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2E21A1
RGBrgb(46, 33, 161)
HSLhsl(246, 66%, 38%)
HSVhsv(246, 80%, 63%)
CMYKcmyk(71.4%, 79.5%, 0%, 36.9%)
CIE-LABlab(24.45, 45.68, -66.08)
CIE-LCHlch(24.45, 80.33, 304.66°)
OKLaboklab(36.88% 0.0198 -0.191)
OKLCHoklch(36.88% 0.192 275.9)
XYZxyz(8.1015, 4.2410, 34.1029)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21A1 #94A121
analogous
#2154A1 #2E21A1 #6E21A1
triadic
#2E21A1 #A12E21 #21A12E
tetradic
#2E21A1 #A12154 #94A121 #21A16E
square
#2E21A1 #A12154 #94A121 #21A16E
split-complementary
#2E21A1 #A16E21 #54A121
monochromatic
#110C3B #1F176E #2E21A1 #3D2CD4 #6B5EDE

Accessibility & contrast

On white

11.36
#2E21A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2E21A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E21A1
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21A1#FFFFFF#000000##FFFFFF
##2E21A11.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e21a1;
/* rgb */ color: rgb(46, 33, 161);
/* oklch */ color: oklch(36.9% 0.192 275.9);
Tailwind
colors: {
  custom: {
    50: '#7960be',
    500: '#2e21a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e21a1;
$custom-light: #7960be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21a1",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 161
  },
  "hsl": {
    "h": 246.094,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36884,
    "c": 0.19204,
    "h": 275.9
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#2E21A1
secondary
#B8C35B
accent
#E93FD8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E21A1

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

Preview Lab → · Contrast checker → · Palette generator →

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