#212489#212489

#212489 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.162 H 272.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#212489
RGBrgb(33, 36, 137)
HSLhsl(238, 61%, 33%)
HSVhsv(238, 76%, 54%)
CMYKcmyk(75.9%, 73.7%, 0%, 46.3%)
CIE-LABlab(21.54, 34.70, -56.10)
CIE-LCHlch(21.54, 65.97, 301.74°)
OKLaboklab(33.82% 0.0067 -0.1623)
OKLCHoklch(33.82% 0.162 272.3)
XYZxyz(5.7719, 3.3906, 24.0123)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212489 #898621
analogous
#215889 #212489 #522189
triadic
#212489 #892124 #248921
tetradic
#212489 #892158 #898621 #218952
square
#212489 #892158 #898621 #218952
split-complementary
#212489 #895221 #588921
monochromatic
#090A26 #151758 #212489 #2D31BA #5053D5

Accessibility & contrast

On white

12.51
#212489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#212489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212489
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212489#FFFFFF#000000##FFFFFF
##2124891.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212489;
/* rgb */ color: rgb(33, 36, 137);
/* oklch */ color: oklch(33.8% 0.162 272.3);
Tailwind
colors: {
  custom: {
    50: '#6e60ac',
    500: '#212489',
    950: '#000000',
  },
}
SCSS
$custom: #212489;
$custom-light: #6e60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212489",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 238.269,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33821,
    "c": 0.16248,
    "h": 272.3
  },
  "luminance": 0.03391
}

Semantic roles & 50–950 ramp

primary
#212489
secondary
#B8B54E
accent
#E044E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212489

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

Preview Lab → · Contrast checker → · Palette generator →

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