#212E8A#212E8A

#212E8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.152 H 270.2°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#212E8A
RGBrgb(33, 46, 138)
HSLhsl(233, 61%, 34%)
HSVhsv(233, 76%, 54%)
CMYKcmyk(76.1%, 66.7%, 0%, 45.9%)
CIE-LABlab(24.04, 28.59, -52.63)
CIE-LCHlch(24.04, 59.89, 298.52°)
OKLaboklab(35.66% 0.0006 -0.1522)
OKLCHoklch(35.66% 0.152 270.2)
XYZxyz(6.1901, 4.1116, 24.5072)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E8A #8A7D21
analogous
#21628A #212E8A #48218A
triadic
#212E8A #8A212E #2E8A21
tetradic
#212E8A #8A2162 #8A7D21 #218A48
square
#212E8A #8A2162 #8A7D21 #218A48
split-complementary
#212E8A #8A4821 #628A21
monochromatic
#090D27 #151E59 #212E8A #2D3EBB #5061D5

Accessibility & contrast

On white

11.52
#212E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#212E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E8A
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E8A#FFFFFF#000000##FFFFFF
##212E8A1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212e8a;
/* rgb */ color: rgb(33, 46, 138);
/* oklch */ color: oklch(35.7% 0.152 270.2);
Tailwind
colors: {
  custom: {
    50: '#6d66ad',
    500: '#212e8a',
    950: '#000000',
  },
}
SCSS
$custom: #212e8a;
$custom-light: #6d66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#212e8a",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 232.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35656,
    "c": 0.15217,
    "h": 270.2
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#212E8A
secondary
#B9AB4E
accent
#D143E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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