#212789#212789

#212789 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.159 H 271.8°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#212789
RGBrgb(33, 39, 137)
HSLhsl(237, 61%, 33%)
HSVhsv(237, 76%, 54%)
CMYKcmyk(75.9%, 71.5%, 0%, 46.3%)
CIE-LABlab(22.23, 32.81, -54.97)
CIE-LCHlch(22.23, 64.02, 300.83°)
OKLaboklab(34.31% 0.005 -0.159)
OKLCHoklch(34.31% 0.159 271.8)
XYZxyz(5.8665, 3.5799, 24.0439)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212789 #898321
analogous
#215B89 #212789 #4F2189
triadic
#212789 #892127 #278921
tetradic
#212789 #89215B #898321 #21894F
square
#212789 #89215B #898321 #21894F
split-complementary
#212789 #894F21 #5B8921
monochromatic
#090B26 #151958 #212789 #2D35BA #5057D5

Accessibility & contrast

On white

12.24
#212789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212789
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212789#FFFFFF#000000##FFFFFF
##2127891.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212789;
/* rgb */ color: rgb(33, 39, 137);
/* oklch */ color: oklch(34.3% 0.159 271.8);
Tailwind
colors: {
  custom: {
    50: '#6e62ac',
    500: '#212789',
    950: '#000000',
  },
}
SCSS
$custom: #212789;
$custom-light: #6e62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212789",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 236.538,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34314,
    "c": 0.15913,
    "h": 271.8
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#212789
secondary
#B8B24E
accent
#DB44E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212789

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

Preview Lab → · Contrast checker → · Palette generator →

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