#212E50#212E50

#212E50 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.8% C 0.064 H 266.8°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#212E50
RGBrgb(33, 46, 80)
HSLhsl(223, 42%, 22%)
HSVhsv(223, 59%, 31%)
CMYKcmyk(58.8%, 42.5%, 0%, 68.6%)
CIE-LABlab(19.46, 6.08, -22.56)
CIE-LCHlch(19.46, 23.36, 285.08°)
OKLaboklab(30.78% -0.0035 -0.0639)
OKLCHoklch(30.78% 0.064 266.8)
XYZxyz(3.0517, 2.8563, 7.9784)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E50 #504321
analogous
#214650 #212E50 #2C2150
triadic
#212E50 #50212E #2E5021
tetradic
#212E50 #502146 #504321 #21502C
square
#212E50 #502146 #504321 #21502C
split-complementary
#212E50 #502C21 #465021
monochromatic
#090C16 #0F1525 #212E50 #33477B #4560A7

Accessibility & contrast

On white

13.36
#212E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212E50
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E50#FFFFFF#000000##FFFFFF
##212E501.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203151
Deuteranopia (green-blind)
#1B2D4F
Tritanopia (blue-blind)
#09353B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #212e50;
/* rgb */ color: rgb(33, 46, 80);
/* oklch */ color: oklch(30.8% 0.064 266.8);
Tailwind
colors: {
  custom: {
    50: '#606681',
    500: '#212e50',
    950: '#000000',
  },
}
SCSS
$custom: #212e50;
$custom-light: #606681;
$custom-dark: #000000;
JSON
{
  "hex": "#212e50",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 80
  },
  "hsl": {
    "h": 223.404,
    "s": 41.593,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30777,
    "c": 0.06396,
    "h": 266.8
  },
  "luminance": 0.02857
}

Semantic roles & 50–950 ramp

primary
#212E50
secondary
#847449
accent
#AF56D1
background
#F5F6F7
surface
#EAEBEE
border
#C6C6C9
text
#05050A
muted
#797A7C

Preview Lab

Preview with #212E50

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

Preview Lab → · Contrast checker → · Palette generator →

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