#212689#212689

#212689 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.160 H 272.0°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#212689
RGBrgb(33, 38, 137)
HSLhsl(237, 61%, 33%)
HSVhsv(237, 76%, 54%)
CMYKcmyk(75.9%, 72.3%, 0%, 46.3%)
CIE-LABlab(22.00, 33.45, -55.35)
CIE-LCHlch(22.00, 64.67, 301.14°)
OKLaboklab(34.15% 0.0056 -0.1602)
OKLCHoklch(34.15% 0.16 272)
XYZxyz(5.8341, 3.5151, 24.0331)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212689 #898421
analogous
#215A89 #212689 #502189
triadic
#212689 #892126 #268921
tetradic
#212689 #89215A #898421 #218950
square
#212689 #89215A #898421 #218950
split-complementary
#212689 #895021 #5A8921
monochromatic
#090B26 #151858 #212689 #2D34BA #5056D5

Accessibility & contrast

On white

12.33
#212689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#212689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212689
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212689#FFFFFF#000000##FFFFFF
##2126891.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212689;
/* rgb */ color: rgb(33, 38, 137);
/* oklch */ color: oklch(34.1% 0.160 272.0);
Tailwind
colors: {
  custom: {
    50: '#6e61ac',
    500: '#212689',
    950: '#000000',
  },
}
SCSS
$custom: #212689;
$custom-light: #6e61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212689",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 137
  },
  "hsl": {
    "h": 237.115,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34147,
    "c": 0.16026,
    "h": 272
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#212689
secondary
#B8B34E
accent
#DD44E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212689

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

Preview Lab → · Contrast checker → · Palette generator →

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