#212E5B#212E5B

#212E5B is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.6% C 0.082 H 269.2°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#212E5B
RGBrgb(33, 46, 91)
HSLhsl(227, 47%, 24%)
HSVhsv(227, 64%, 36%)
CMYKcmyk(63.7%, 49.5%, 0%, 64.3%)
CIE-LABlab(20.17, 10.30, -28.75)
CIE-LCHlch(20.17, 30.54, 289.71°)
OKLaboklab(31.56% -0.0012 -0.082)
OKLCHoklch(31.56% 0.082 269.2)
XYZxyz(3.4919, 3.0324, 10.2968)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E5B #5B4E21
analogous
#214B5B #212E5B #31215B
triadic
#212E5B #5B212E #2E5B21
tetradic
#212E5B #5B214B #5B4E21 #215B31
square
#212E5B #5B214B #5B4E21 #215B31
split-complementary
#212E5B #5B3121 #4B5B21
monochromatic
#080B16 #11172E #212E5B #314588 #425BB5

Accessibility & contrast

On white

13.07
#212E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212E5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E5B
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E5B#FFFFFF#000000##FFFFFF
##212E5B1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19335D
Deuteranopia (green-blind)
#102E5A
Tritanopia (blue-blind)
#003840
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212e5b;
/* rgb */ color: rgb(33, 46, 91);
/* oklch */ color: oklch(31.6% 0.082 269.2);
Tailwind
colors: {
  custom: {
    50: '#62668a',
    500: '#212e5b',
    950: '#000000',
  },
}
SCSS
$custom: #212e5b;
$custom-light: #62668a;
$custom-dark: #000000;
JSON
{
  "hex": "#212e5b",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 91
  },
  "hsl": {
    "h": 226.552,
    "s": 46.774,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31557,
    "c": 0.08204,
    "h": 269.2
  },
  "luminance": 0.03033
}

Semantic roles & 50–950 ramp

primary
#212E5B
secondary
#8F7F49
accent
#B951D6
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05050B
muted
#7A7A7C

Preview Lab

Preview with #212E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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