#2E21A4#2E21A4

#2E21A4 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.2% C 0.196 H 275.6°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2E21A4
RGBrgb(46, 33, 164)
HSLhsl(246, 66%, 39%)
HSVhsv(246, 80%, 64%)
CMYKcmyk(72%, 79.9%, 0%, 35.7%)
CIE-LABlab(24.79, 46.62, -67.34)
CIE-LCHlch(24.79, 81.91, 304.70°)
OKLaboklab(37.22% 0.019 -0.1947)
OKLCHoklch(37.22% 0.196 275.6)
XYZxyz(8.3692, 4.3481, 35.5130)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21A4 #97A421
analogous
#2155A4 #2E21A4 #6F21A4
triadic
#2E21A4 #A42E21 #21A42E
tetradic
#2E21A4 #A42155 #97A421 #21A46F
square
#2E21A4 #A42155 #97A421 #21A46F
split-complementary
#2E21A4 #A46F21 #55A421
monochromatic
#110C3E #201771 #2E21A4 #3E2DD5 #6D60DF

Accessibility & contrast

On white

11.23
#2E21A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2E21A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E21A4
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21A4#FFFFFF#000000##FFFFFF
##2E21A41.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e21a4;
/* rgb */ color: rgb(46, 33, 164);
/* oklch */ color: oklch(37.2% 0.196 275.6);
Tailwind
colors: {
  custom: {
    50: '#7a60c0',
    500: '#2e21a4',
    950: '#000000',
  },
}
SCSS
$custom: #2e21a4;
$custom-light: #7a60c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21a4",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 245.954,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37219,
    "c": 0.19563,
    "h": 275.6
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#2E21A4
secondary
#BAC45D
accent
#E93ED8
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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