#212F95#212F95

#212F95 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.166 H 269.7°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#212F95
RGBrgb(33, 47, 149)
HSLhsl(233, 64%, 36%)
HSVhsv(233, 78%, 58%)
CMYKcmyk(77.9%, 68.5%, 0%, 41.6%)
CIE-LABlab(25.34, 32.07, -57.30)
CIE-LCHlch(25.34, 65.66, 299.23°)
OKLaboklab(36.93% -0.0008 -0.1658)
OKLCHoklch(36.93% 0.166 269.7)
XYZxyz(7.0667, 4.5255, 28.9290)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F95 #958721
analogous
#216995 #212F95 #4D2195
triadic
#212F95 #95212F #2F9521
tetradic
#212F95 #952169 #958721 #21954D
square
#212F95 #952169 #958721 #21954D
split-complementary
#212F95 #954D21 #699521
monochromatic
#0B0F31 #161F63 #212F95 #2C3FC7 #5766DA

Accessibility & contrast

On white

11.02
#212F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#212F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F95
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F95#FFFFFF#000000##FFFFFF
##212F951.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003793
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212f95;
/* rgb */ color: rgb(33, 47, 149);
/* oklch */ color: oklch(36.9% 0.166 269.7);
Tailwind
colors: {
  custom: {
    50: '#7067b5',
    500: '#212f95',
    950: '#000000',
  },
}
SCSS
$custom: #212f95;
$custom-light: #7067b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212f95",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 232.759,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36927,
    "c": 0.16584,
    "h": 269.7
  },
  "luminance": 0.04526
}

Semantic roles & 50–950 ramp

primary
#212F95
secondary
#BEB154
accent
#D341E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212F95

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

Preview Lab → · Contrast checker → · Palette generator →

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