#2E21AA#2E21AA

#2E21AA is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 37.9% C 0.203 H 274.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#2E21AA
RGBrgb(46, 33, 170)
HSLhsl(246, 67%, 40%)
HSVhsv(246, 81%, 67%)
CMYKcmyk(72.9%, 80.6%, 0%, 33.3%)
CIE-LABlab(25.47, 48.49, -69.84)
CIE-LCHlch(25.47, 85.02, 304.77°)
OKLaboklab(37.89% 0.0175 -0.202)
OKLCHoklch(37.89% 0.203 274.9)
XYZxyz(8.9239, 4.5700, 38.4342)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21AA #9DAA21
analogous
#2159AA #2E21AA #7221AA
triadic
#2E21AA #AA2E21 #21AA2E
tetradic
#2E21AA #AA2159 #9DAA21 #21AA72
square
#2E21AA #AA2159 #9DAA21 #21AA72
split-complementary
#2E21AA #AA7221 #59AA21
monochromatic
#120D43 #201777 #2E21AA #4131D7 #7064E1

Accessibility & contrast

On white

10.97
#2E21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2E21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E21AA
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21AA#FFFFFF#000000##FFFFFF
##2E21AA1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AE
Deuteranopia (green-blind)
#0036A8
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e21aa;
/* rgb */ color: rgb(46, 33, 170);
/* oklch */ color: oklch(37.9% 0.203 274.9);
Tailwind
colors: {
  custom: {
    50: '#7b60c5',
    500: '#2e21aa',
    950: '#000000',
  },
}
SCSS
$custom: #2e21aa;
$custom-light: #7b60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21aa",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 245.693,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37894,
    "c": 0.20271,
    "h": 274.9
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#2E21AA
secondary
#BDC661
accent
#EA3DDA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2E21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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