#212589#212589

#212589 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.161 H 272.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#212589
RGBrgb(33, 37, 137)
HSLhsl(238, 61%, 33%)
HSVhsv(238, 76%, 54%)
CMYKcmyk(75.9%, 73%, 0%, 46.3%)
CIE-LABlab(21.77, 34.08, -55.73)
CIE-LCHlch(21.77, 65.32, 301.44°)
OKLaboklab(33.98% 0.0061 -0.1613)
OKLCHoklch(33.98% 0.161 272.2)
XYZxyz(5.8026, 3.4520, 24.0226)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212589 #898521
analogous
#215989 #212589 #512189
triadic
#212589 #892125 #258921
tetradic
#212589 #892159 #898521 #218951
square
#212589 #892159 #898521 #218951
split-complementary
#212589 #895121 #598921
monochromatic
#090A26 #151858 #212589 #2D32BA #5055D5

Accessibility & contrast

On white

12.42
#212589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#212589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212589
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212589#FFFFFF#000000##FFFFFF
##2125891.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.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: #212589;
/* rgb */ color: rgb(33, 37, 137);
/* oklch */ color: oklch(34.0% 0.161 272.2);
Tailwind
colors: {
  custom: {
    50: '#6e60ac',
    500: '#212589',
    950: '#000000',
  },
}
SCSS
$custom: #212589;
$custom-light: #6e60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212589",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 137
  },
  "hsl": {
    "h": 237.692,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33982,
    "c": 0.16138,
    "h": 272.2
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#212589
secondary
#B8B44E
accent
#DE44E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212589

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

Preview Lab → · Contrast checker → · Palette generator →

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