#212F8D#212F8D

#212F8D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.155 H 269.9°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#212F8D
RGBrgb(33, 47, 141)
HSLhsl(232, 62%, 34%)
HSVhsv(232, 77%, 55%)
CMYKcmyk(76.6%, 66.7%, 0%, 44.7%)
CIE-LABlab(24.57, 29.06, -53.62)
CIE-LCHlch(24.57, 60.99, 298.46°)
OKLaboklab(36.14% -0.0002 -0.1551)
OKLCHoklch(36.14% 0.155 269.9)
XYZxyz(6.4498, 4.2788, 25.6801)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F8D #8D7F21
analogous
#21658D #212F8D #49218D
triadic
#212F8D #8D212F #2F8D21
tetradic
#212F8D #8D2165 #8D7F21 #218D49
square
#212F8D #8D2165 #8D7F21 #218D49
split-complementary
#212F8D #8D4921 #658D21
monochromatic
#0A0E2A #151E5B #212F8D #2D40BF #5263D6

Accessibility & contrast

On white

11.32
#212F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#212F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F8D
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F8D#FFFFFF#000000##FFFFFF
##212F8D1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212f8d;
/* rgb */ color: rgb(33, 47, 141);
/* oklch */ color: oklch(36.1% 0.155 269.9);
Tailwind
colors: {
  custom: {
    50: '#6e67af',
    500: '#212f8d',
    950: '#000000',
  },
}
SCSS
$custom: #212f8d;
$custom-light: #6e67af;
$custom-dark: #000000;
JSON
{
  "hex": "#212f8d",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 232.222,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36135,
    "c": 0.15506,
    "h": 269.9
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#212F8D
secondary
#BAAC50
accent
#D043E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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