#212F8B#212F8B

#212F8B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.152 H 270.0°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#212F8B
RGBrgb(33, 47, 139)
HSLhsl(232, 62%, 34%)
HSVhsv(232, 76%, 55%)
CMYKcmyk(76.3%, 66.2%, 0%, 45.5%)
CIE-LABlab(24.39, 28.30, -52.68)
CIE-LCHlch(24.39, 59.80, 298.25°)
OKLaboklab(35.94% -0.0001 -0.1523)
OKLCHoklch(35.94% 0.152 270)
XYZxyz(6.3023, 4.2198, 24.9034)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F8B #8B7D21
analogous
#21648B #212F8B #48218B
triadic
#212F8B #8B212F #2F8B21
tetradic
#212F8B #8B2164 #8B7D21 #218B48
square
#212F8B #8B2164 #8B7D21 #218B48
split-complementary
#212F8B #8B4821 #648B21
monochromatic
#0A0E28 #151E5A #212F8B #2D40BC #5162D6

Accessibility & contrast

On white

11.39
#212F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#212F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F8B
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F8B#FFFFFF#000000##FFFFFF
##212F8B1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212f8b;
/* rgb */ color: rgb(33, 47, 139);
/* oklch */ color: oklch(35.9% 0.152 270.0);
Tailwind
colors: {
  custom: {
    50: '#6e67ae',
    500: '#212f8b',
    950: '#000000',
  },
}
SCSS
$custom: #212f8b;
$custom-light: #6e67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#212f8b",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 232.075,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3594,
    "c": 0.15232,
    "h": 270
  },
  "luminance": 0.0422
}

Semantic roles & 50–950 ramp

primary
#212F8B
secondary
#B9AB4F
accent
#CF43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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