#2E21A5#2E21A5

#2E21A5 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.197 H 275.5°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2E21A5
RGBrgb(46, 33, 165)
HSLhsl(246, 67%, 39%)
HSVhsv(246, 80%, 65%)
CMYKcmyk(72.1%, 80%, 0%, 35.3%)
CIE-LABlab(24.90, 46.94, -67.76)
CIE-LCHlch(24.90, 82.43, 304.71°)
OKLaboklab(37.33% 0.0188 -0.1959)
OKLCHoklch(37.33% 0.197 275.5)
XYZxyz(8.4599, 4.3844, 35.9904)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21A5 #98A521
analogous
#2156A5 #2E21A5 #7021A5
triadic
#2E21A5 #A52E21 #21A52E
tetradic
#2E21A5 #A52156 #98A521 #21A570
square
#2E21A5 #A52156 #98A521 #21A570
split-complementary
#2E21A5 #A57021 #56A521
monochromatic
#120D3F #201772 #2E21A5 #3E2ED5 #6D61DF

Accessibility & contrast

On white

11.19
#2E21A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2E21A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E21A5
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21A5#FFFFFF#000000##FFFFFF
##2E21A51.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A9
Deuteranopia (green-blind)
#0035A3
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e21a5;
/* rgb */ color: rgb(46, 33, 165);
/* oklch */ color: oklch(37.3% 0.197 275.5);
Tailwind
colors: {
  custom: {
    50: '#7a60c1',
    500: '#2e21a5',
    950: '#000000',
  },
}
SCSS
$custom: #2e21a5;
$custom-light: #7a60c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21a5",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 165
  },
  "hsl": {
    "h": 245.909,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37331,
    "c": 0.19682,
    "h": 275.5
  },
  "luminance": 0.04385
}

Semantic roles & 50–950 ramp

primary
#2E21A5
secondary
#BAC45E
accent
#EA3ED9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E21A5

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

Preview Lab → · Contrast checker → · Palette generator →

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