#212E4F#212E4F

#212E4F is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.7% C 0.062 H 266.5°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#212E4F
RGBrgb(33, 46, 79)
HSLhsl(223, 41%, 22%)
HSVhsv(223, 58%, 31%)
CMYKcmyk(58.2%, 41.8%, 0%, 69%)
CIE-LABlab(19.40, 5.70, -21.98)
CIE-LCHlch(19.40, 22.71, 284.54°)
OKLaboklab(30.71% -0.0038 -0.0622)
OKLCHoklch(30.71% 0.062 266.5)
XYZxyz(3.0150, 2.8416, 7.7852)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E4F #4F4221
analogous
#21454F #212E4F #2B214F
triadic
#212E4F #4F212E #2E4F21
tetradic
#212E4F #4F2145 #4F4221 #214F2B
square
#212E4F #4F2145 #4F4221 #214F2B
split-complementary
#212E4F #4F2B21 #454F21
monochromatic
#090D16 #0F1524 #212E4F #33477A #4560A5

Accessibility & contrast

On white

13.39
#212E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#212E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E4F
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E4F#FFFFFF#000000##FFFFFF
##212E4F1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213150
Deuteranopia (green-blind)
#1B2D4E
Tritanopia (blue-blind)
#0A353A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #212e4f;
/* rgb */ color: rgb(33, 46, 79);
/* oklch */ color: oklch(30.7% 0.062 266.5);
Tailwind
colors: {
  custom: {
    50: '#606680',
    500: '#212e4f',
    950: '#000000',
  },
}
SCSS
$custom: #212e4f;
$custom-light: #606680;
$custom-dark: #000000;
JSON
{
  "hex": "#212e4f",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 79
  },
  "hsl": {
    "h": 223.043,
    "s": 41.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3071,
    "c": 0.06229,
    "h": 266.5
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#212E4F
secondary
#837349
accent
#AE57D1
background
#F5F6F7
surface
#EAEBEE
border
#C6C6C9
text
#05050A
muted
#797A7C

Preview Lab

Preview with #212E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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