#212F97#212F97

#212F97 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.168 H 269.7°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#212F97
RGBrgb(33, 47, 151)
HSLhsl(233, 64%, 36%)
HSVhsv(233, 78%, 59%)
CMYKcmyk(78.1%, 68.9%, 0%, 40.8%)
CIE-LABlab(25.53, 32.81, -58.21)
CIE-LCHlch(25.53, 66.82, 299.41°)
OKLaboklab(37.13% -0.001 -0.1685)
OKLCHoklch(37.13% 0.168 269.7)
XYZxyz(7.2277, 4.5899, 29.7772)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F97 #978921
analogous
#216A97 #212F97 #4E2197
triadic
#212F97 #97212F #2F9721
tetradic
#212F97 #97216A #978921 #21974E
square
#212F97 #97216A #978921 #21974E
split-complementary
#212F97 #974E21 #6A9721
monochromatic
#0B1033 #161F65 #212F97 #2C3FC9 #5867DA

Accessibility & contrast

On white

10.95
#212F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#212F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F97
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F97#FFFFFF#000000##FFFFFF
##212F971.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212f97;
/* rgb */ color: rgb(33, 47, 151);
/* oklch */ color: oklch(37.1% 0.168 269.7);
Tailwind
colors: {
  custom: {
    50: '#7167b7',
    500: '#212f97',
    950: '#000000',
  },
}
SCSS
$custom: #212f97;
$custom-light: #7167b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212f97",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 232.881,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37128,
    "c": 0.16849,
    "h": 269.7
  },
  "luminance": 0.04591
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212F97

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

Preview Lab → · Contrast checker → · Palette generator →

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