#212588#212588

#212588 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.160 H 272.2°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#212588
RGBrgb(33, 37, 136)
HSLhsl(238, 61%, 33%)
HSVhsv(238, 76%, 53%)
CMYKcmyk(75.7%, 72.8%, 0%, 46.7%)
CIE-LABlab(21.67, 33.72, -55.28)
CIE-LCHlch(21.67, 64.75, 301.38°)
OKLaboklab(33.88% 0.0063 -0.1599)
OKLCHoklch(33.88% 0.16 272.2)
XYZxyz(5.7312, 3.4234, 23.6465)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212588 #888421
analogous
#215888 #212588 #502188
triadic
#212588 #882125 #258821
tetradic
#212588 #882158 #888421 #218850
square
#212588 #882158 #888421 #218850
split-complementary
#212588 #885021 #588821
monochromatic
#090A25 #151857 #212588 #2D32B9 #4F54D4

Accessibility & contrast

On white

12.46
#212588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212588
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212588#FFFFFF#000000##FFFFFF
##2125881.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212588;
/* rgb */ color: rgb(33, 37, 136);
/* oklch */ color: oklch(33.9% 0.160 272.2);
Tailwind
colors: {
  custom: {
    50: '#6e60ac',
    500: '#212588',
    950: '#000000',
  },
}
SCSS
$custom: #212588;
$custom-light: #6e60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212588",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 136
  },
  "hsl": {
    "h": 237.67,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33876,
    "c": 0.16005,
    "h": 272.2
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212588

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

Preview Lab → · Contrast checker → · Palette generator →

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