#212E8E#212E8E

#212E8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.158 H 270.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#212E8E
RGBrgb(33, 46, 142)
HSLhsl(233, 62%, 34%)
HSVhsv(233, 77%, 56%)
CMYKcmyk(76.8%, 67.6%, 0%, 44.3%)
CIE-LABlab(24.42, 30.10, -54.49)
CIE-LCHlch(24.42, 62.25, 298.92°)
OKLaboklab(36.05% 0.0003 -0.1576)
OKLCHoklch(36.05% 0.158 270.1)
XYZxyz(6.4850, 4.2296, 26.0606)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E8E #8E8121
analogous
#21658E #212E8E #4B218E
triadic
#212E8E #8E212E #2E8E21
tetradic
#212E8E #8E2165 #8E8121 #218E4B
square
#212E8E #8E2165 #8E8121 #218E4B
split-complementary
#212E8E #8E4B21 #658E21
monochromatic
#0A0E2B #151E5C #212E8E #2D3EC0 #5262D7

Accessibility & contrast

On white

11.38
#212E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#212E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E8E
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E8E#FFFFFF#000000##FFFFFF
##212E8E1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212e8e;
/* rgb */ color: rgb(33, 46, 142);
/* oklch */ color: oklch(36.0% 0.158 270.1);
Tailwind
colors: {
  custom: {
    50: '#6e67b0',
    500: '#212e8e',
    950: '#000000',
  },
}
SCSS
$custom: #212e8e;
$custom-light: #6e67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#212e8e",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 232.844,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3605,
    "c": 0.15763,
    "h": 270.1
  },
  "luminance": 0.0423
}

Semantic roles & 50–950 ramp

primary
#212E8E
secondary
#BAAE50
accent
#D242E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #212E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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