#212E5F#212E5F

#212E5F is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.9% C 0.088 H 269.6°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#212E5F
RGBrgb(33, 46, 95)
HSLhsl(227, 48%, 25%)
HSVhsv(227, 65%, 37%)
CMYKcmyk(65.3%, 51.6%, 0%, 62.7%)
CIE-LABlab(20.45, 11.86, -30.94)
CIE-LCHlch(20.45, 33.14, 290.97°)
OKLaboklab(31.86% -0.0005 -0.0885)
OKLCHoklch(31.86% 0.088 269.6)
XYZxyz(3.6691, 3.1032, 11.2299)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E5F #5F5221
analogous
#214D5F #212E5F #33215F
triadic
#212E5F #5F212E #2E5F21
tetradic
#212E5F #5F214D #5F5221 #215F33
square
#212E5F #5F214D #5F5221 #215F33
split-complementary
#212E5F #5F3321 #4D5F21
monochromatic
#080B17 #111832 #212E5F #31448C #415ABA

Accessibility & contrast

On white

12.96
#212E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#212E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E5F
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E5F#FFFFFF#000000##FFFFFF
##212E5F1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153461
Deuteranopia (green-blind)
#0A2F5E
Tritanopia (blue-blind)
#003942
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212e5f;
/* rgb */ color: rgb(33, 46, 95);
/* oklch */ color: oklch(31.9% 0.088 269.6);
Tailwind
colors: {
  custom: {
    50: '#63668d',
    500: '#212e5f',
    950: '#000000',
  },
}
SCSS
$custom: #212e5f;
$custom-light: #63668d;
$custom-dark: #000000;
JSON
{
  "hex": "#212e5f",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 95
  },
  "hsl": {
    "h": 227.419,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3186,
    "c": 0.08847,
    "h": 269.6
  },
  "luminance": 0.03104
}

Semantic roles & 50–950 ramp

primary
#212E5F
secondary
#938449
accent
#BB50D8
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06050C
muted
#7A7A7D

Preview Lab

Preview with #212E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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