#212EA9#212EA9

#212EA9 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.193 H 269.3°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#212EA9
RGBrgb(33, 46, 169)
HSLhsl(234, 67%, 40%)
HSVhsv(234, 80%, 66%)
CMYKcmyk(80.5%, 72.8%, 0%, 33.7%)
CIE-LABlab(27.13, 39.96, -66.52)
CIE-LCHlch(27.13, 77.60, 301.00°)
OKLaboklab(38.83% -0.0025 -0.1927)
OKLCHoklch(38.83% 0.193 269.3)
XYZxyz(8.7632, 5.1409, 38.0589)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212EA9 #A99C21
analogous
#2172A9 #212EA9 #5821A9
triadic
#212EA9 #A9212E #2EA921
tetradic
#212EA9 #A92172 #A99C21 #21A958
square
#212EA9 #A92172 #A99C21 #21A958
split-complementary
#212EA9 #A95821 #72A921
monochromatic
#0D1243 #172076 #212EA9 #3140D7 #6470E1

Accessibility & contrast

On white

10.35
#212EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#212EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212EA9
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212EA9#FFFFFF#000000##FFFFFF
##212EA91.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0039A7
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #212ea9;
/* rgb */ color: rgb(33, 46, 169);
/* oklch */ color: oklch(38.8% 0.193 269.3);
Tailwind
colors: {
  custom: {
    50: '#7667c4',
    500: '#212ea9',
    950: '#000000',
  },
}
SCSS
$custom: #212ea9;
$custom-light: #7667c4;
$custom-dark: #000000;
JSON
{
  "hex": "#212ea9",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 234.265,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38833,
    "c": 0.19272,
    "h": 269.3
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

primary
#212EA9
secondary
#C6BC60
accent
#DA3EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #212EA9

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

Preview Lab → · Contrast checker → · Palette generator →

#212EA9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva