#212F91#212F91

#212F91 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.160 H 269.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#212F91
RGBrgb(33, 47, 145)
HSLhsl(233, 63%, 35%)
HSVhsv(233, 77%, 57%)
CMYKcmyk(77.2%, 67.6%, 0%, 43.1%)
CIE-LABlab(24.95, 30.57, -55.47)
CIE-LCHlch(24.95, 63.34, 298.86°)
OKLaboklab(36.53% -0.0005 -0.1605)
OKLCHoklch(36.53% 0.16 269.8)
XYZxyz(6.7528, 4.4000, 27.2760)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F91 #918321
analogous
#216791 #212F91 #4B2191
triadic
#212F91 #91212F #2F9121
tetradic
#212F91 #912167 #918321 #21914B
square
#212F91 #912167 #918321 #21914B
split-complementary
#212F91 #914B21 #679121
monochromatic
#0A0F2D #161F5F #212F91 #2C3FC3 #5465D8

Accessibility & contrast

On white

11.17
#212F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#212F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F91
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F91#FFFFFF#000000##FFFFFF
##212F911.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00368F
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212f91;
/* rgb */ color: rgb(33, 47, 145);
/* oklch */ color: oklch(36.5% 0.160 269.8);
Tailwind
colors: {
  custom: {
    50: '#6f67b2',
    500: '#212f91',
    950: '#000000',
  },
}
SCSS
$custom: #212f91;
$custom-light: #6f67b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212f91",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 232.5,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36528,
    "c": 0.16048,
    "h": 269.8
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#212F91
secondary
#BCAF52
accent
#D142E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212F91

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

Preview Lab → · Contrast checker → · Palette generator →

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