#212997#212997

#212997 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.175 H 270.7°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#212997
RGBrgb(33, 41, 151)
HSLhsl(236, 64%, 36%)
HSVhsv(236, 78%, 59%)
CMYKcmyk(78.1%, 72.8%, 0%, 40.8%)
CIE-LABlab(24.14, 36.62, -60.51)
CIE-LCHlch(24.14, 70.72, 301.18°)
OKLaboklab(36.12% 0.0021 -0.1752)
OKLCHoklch(36.12% 0.175 270.7)
XYZxyz(7.0041, 4.1428, 29.7027)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212997 #978F21
analogous
#216497 #212997 #542197
triadic
#212997 #972129 #299721
tetradic
#212997 #972164 #978F21 #219754
square
#212997 #972164 #978F21 #219754
split-complementary
#212997 #975421 #649721
monochromatic
#0B0E33 #161B65 #212997 #2C37C9 #5861DA

Accessibility & contrast

On white

11.48
#212997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#212997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212997
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212997#FFFFFF#000000##FFFFFF
##2129971.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212997;
/* rgb */ color: rgb(33, 41, 151);
/* oklch */ color: oklch(36.1% 0.175 270.7);
Tailwind
colors: {
  custom: {
    50: '#7163b7',
    500: '#212997',
    950: '#000000',
  },
}
SCSS
$custom: #212997;
$custom-light: #7163b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212997",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 235.932,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36121,
    "c": 0.1752,
    "h": 270.7
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#212997
secondary
#BEB755
accent
#DC41E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212997

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

Preview Lab → · Contrast checker → · Palette generator →

#212997 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva