#212A4E#212A4E

#212A4E is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.7% C 0.067 H 271.3°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#212A4E
RGBrgb(33, 42, 78)
HSLhsl(228, 41%, 22%)
HSVhsv(228, 58%, 31%)
CMYKcmyk(57.7%, 46.2%, 0%, 69.4%)
CIE-LABlab(18.05, 8.20, -23.44)
CIE-LCHlch(18.05, 24.84, 289.29°)
OKLaboklab(29.65% 0.0015 -0.0665)
OKLCHoklch(29.65% 0.067 271.3)
XYZxyz(2.8299, 2.5291, 7.5453)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A4E #4E4521
analogous
#21414E #212A4E #2F214E
triadic
#212A4E #4E212A #2A4E21
tetradic
#212A4E #4E2141 #4E4521 #214E2F
square
#212A4E #4E2141 #4E4521 #214E2F
split-complementary
#212A4E #4E2F21 #414E21
monochromatic
#090C16 #0F1323 #212A4E #334179 #4558A4

Accessibility & contrast

On white

13.95
#212A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#212A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A4E
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A4E#FFFFFF#000000##FFFFFF
##212A4E1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2E4F
Deuteranopia (green-blind)
#162A4D
Tritanopia (blue-blind)
#0C3238
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #212a4e;
/* rgb */ color: rgb(33, 42, 78);
/* oklch */ color: oklch(29.7% 0.067 271.3);
Tailwind
colors: {
  custom: {
    50: '#606380',
    500: '#212a4e',
    950: '#000000',
  },
}
SCSS
$custom: #212a4e;
$custom-light: #606380;
$custom-dark: #000000;
JSON
{
  "hex": "#212a4e",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 228,
    "s": 40.541,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29652,
    "c": 0.06652,
    "h": 271.3
  },
  "luminance": 0.02529
}

Semantic roles & 50–950 ramp

primary
#212A4E
secondary
#827749
accent
#B857D0
background
#F5F5F7
surface
#EAEAEE
border
#C6C6C9
text
#05050A
muted
#79797C

Preview Lab

Preview with #212A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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