#212889#212889

#212889 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.158 H 271.6°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#212889
RGBrgb(33, 40, 137)
HSLhsl(236, 61%, 33%)
HSVhsv(236, 76%, 54%)
CMYKcmyk(75.9%, 70.8%, 0%, 46.3%)
CIE-LABlab(22.47, 32.17, -54.58)
CIE-LCHlch(22.47, 63.36, 300.51°)
OKLaboklab(34.48% 0.0044 -0.1579)
OKLCHoklch(34.48% 0.158 271.6)
XYZxyz(5.8998, 3.6464, 24.0550)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212889 #898221
analogous
#215C89 #212889 #4E2189
triadic
#212889 #892128 #288921
tetradic
#212889 #89215C #898221 #21894E
square
#212889 #89215C #898221 #21894E
split-complementary
#212889 #894E21 #5C8921
monochromatic
#090B26 #151A58 #212889 #2D36BA #5059D5

Accessibility & contrast

On white

12.14
#212889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212889
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212889#FFFFFF#000000##FFFFFF
##2128891.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212889;
/* rgb */ color: rgb(33, 40, 137);
/* oklch */ color: oklch(34.5% 0.158 271.6);
Tailwind
colors: {
  custom: {
    50: '#6e62ac',
    500: '#212889',
    950: '#000000',
  },
}
SCSS
$custom: #212889;
$custom-light: #6e62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212889",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 235.962,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34484,
    "c": 0.15798,
    "h": 271.6
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212889

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

Preview Lab → · Contrast checker → · Palette generator →

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