#212888#212888

#212888 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.157 H 271.7°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#212888
RGBrgb(33, 40, 136)
HSLhsl(236, 61%, 33%)
HSVhsv(236, 76%, 53%)
CMYKcmyk(75.7%, 70.6%, 0%, 46.7%)
CIE-LABlab(22.37, 31.80, -54.12)
CIE-LCHlch(22.37, 62.77, 300.44°)
OKLaboklab(34.38% 0.0045 -0.1566)
OKLCHoklch(34.38% 0.157 271.7)
XYZxyz(5.8284, 3.6179, 23.6789)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212888 #888121
analogous
#215B88 #212888 #4D2188
triadic
#212888 #882128 #288821
tetradic
#212888 #88215B #888121 #21884D
square
#212888 #88215B #888121 #21884D
split-complementary
#212888 #884D21 #5B8821
monochromatic
#090B25 #151A57 #212888 #2D36B9 #4F58D4

Accessibility & contrast

On white

12.18
#212888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212888
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212888#FFFFFF#000000##FFFFFF
##2128881.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212888;
/* rgb */ color: rgb(33, 40, 136);
/* oklch */ color: oklch(34.4% 0.157 271.7);
Tailwind
colors: {
  custom: {
    50: '#6e62ac',
    500: '#212888',
    950: '#000000',
  },
}
SCSS
$custom: #212888;
$custom-light: #6e62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212888",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 235.922,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3438,
    "c": 0.15664,
    "h": 271.7
  },
  "luminance": 0.03618
}

Semantic roles & 50–950 ramp

primary
#212888
secondary
#B8B04D
accent
#D944E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212888

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

Preview Lab → · Contrast checker → · Palette generator →

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