#212E8F#212E8F

#212E8F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.159 H 270.1°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#212E8F
RGBrgb(33, 46, 143)
HSLhsl(233, 63%, 35%)
HSVhsv(233, 77%, 56%)
CMYKcmyk(76.9%, 67.8%, 0%, 43.9%)
CIE-LABlab(24.51, 30.48, -54.95)
CIE-LCHlch(24.51, 62.84, 299.01°)
OKLaboklab(36.15% 0.0002 -0.159)
OKLCHoklch(36.15% 0.159 270.1)
XYZxyz(6.5604, 4.2598, 26.4577)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E8F #8F8221
analogous
#21658F #212E8F #4B218F
triadic
#212E8F #8F212E #2E8F21
tetradic
#212E8F #8F2165 #8F8221 #218F4B
square
#212E8F #8F2165 #8F8221 #218F4B
split-complementary
#212E8F #8F4B21 #658F21
monochromatic
#0A0E2C #161E5D #212E8F #2C3EC1 #5363D7

Accessibility & contrast

On white

11.34
#212E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212E8F
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E8F#FFFFFF#000000##FFFFFF
##212E8F1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212e8f;
/* rgb */ color: rgb(33, 46, 143);
/* oklch */ color: oklch(36.1% 0.159 270.1);
Tailwind
colors: {
  custom: {
    50: '#6f67b1',
    500: '#212e8f',
    950: '#000000',
  },
}
SCSS
$custom: #212e8f;
$custom-light: #6f67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#212e8f",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 232.909,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36149,
    "c": 0.15898,
    "h": 270.1
  },
  "luminance": 0.0426
}

Semantic roles & 50–950 ramp

primary
#212E8F
secondary
#BBAE51
accent
#D242E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #212E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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