#212F98#212F98

#212F98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.170 H 269.6°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#212F98
RGBrgb(33, 47, 152)
HSLhsl(233, 64%, 36%)
HSVhsv(233, 78%, 60%)
CMYKcmyk(78.3%, 69.1%, 0%, 40.4%)
CIE-LABlab(25.63, 33.18, -58.66)
CIE-LCHlch(25.63, 67.40, 299.49°)
OKLaboklab(37.23% -0.0011 -0.1698)
OKLCHoklch(37.23% 0.17 269.6)
XYZxyz(7.3093, 4.6226, 30.2067)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F98 #988A21
analogous
#216B98 #212F98 #4F2198
triadic
#212F98 #98212F #2F9821
tetradic
#212F98 #98216B #988A21 #21984F
square
#212F98 #98216B #988A21 #21984F
split-complementary
#212F98 #984F21 #6B9821
monochromatic
#0B1033 #161F66 #212F98 #2C3FCA #5968DB

Accessibility & contrast

On white

10.91
#212F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212F98
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F98#FFFFFF#000000##FFFFFF
##212F981.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #212f98;
/* rgb */ color: rgb(33, 47, 152);
/* oklch */ color: oklch(37.2% 0.170 269.6);
Tailwind
colors: {
  custom: {
    50: '#7168b7',
    500: '#212f98',
    950: '#000000',
  },
}
SCSS
$custom: #212f98;
$custom-light: #7168b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212f98",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 232.941,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3723,
    "c": 0.16981,
    "h": 269.6
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#212F98
secondary
#BFB356
accent
#D440E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212F98

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

Preview Lab → · Contrast checker → · Palette generator →

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