#212991#212991

#212991 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.167 H 271.0°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#212991
RGBrgb(33, 41, 145)
HSLhsl(236, 63%, 35%)
HSVhsv(236, 77%, 57%)
CMYKcmyk(77.2%, 71.7%, 0%, 43.1%)
CIE-LABlab(23.51, 34.45, -57.83)
CIE-LCHlch(23.51, 67.32, 300.78°)
OKLaboklab(35.49% 0.0029 -0.1674)
OKLCHoklch(35.49% 0.167 271)
XYZxyz(6.5292, 3.9528, 27.2014)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212991 #918921
analogous
#216191 #212991 #512191
triadic
#212991 #912129 #299121
tetradic
#212991 #912161 #918921 #219151
square
#212991 #912161 #918921 #219151
split-complementary
#212991 #915121 #619121
monochromatic
#0A0D2D #161B5F #212991 #2C37C3 #545ED8

Accessibility & contrast

On white

11.73
#212991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#212991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212991
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212991#FFFFFF#000000##FFFFFF
##2129911.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212991;
/* rgb */ color: rgb(33, 41, 145);
/* oklch */ color: oklch(35.5% 0.167 271.0);
Tailwind
colors: {
  custom: {
    50: '#7063b2',
    500: '#212991',
    950: '#000000',
  },
}
SCSS
$custom: #212991;
$custom-light: #7063b2;
$custom-dark: #000000;
JSON
{
  "hex": "#212991",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 235.714,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35486,
    "c": 0.16742,
    "h": 271
  },
  "luminance": 0.03954
}

Semantic roles & 50–950 ramp

primary
#212991
secondary
#BCB452
accent
#DA42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212991

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

Preview Lab → · Contrast checker → · Palette generator →

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