#212388#212388

#212388 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.162 H 272.6°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#212388
RGBrgb(33, 35, 136)
HSLhsl(239, 61%, 33%)
HSVhsv(239, 76%, 53%)
CMYKcmyk(75.7%, 74.3%, 0%, 46.7%)
CIE-LABlab(21.22, 34.96, -56.02)
CIE-LCHlch(21.22, 66.03, 301.97°)
OKLaboklab(33.55% 0.0074 -0.1621)
OKLCHoklch(33.55% 0.162 272.6)
XYZxyz(5.6707, 3.3024, 23.6263)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212388 #888621
analogous
#215688 #212388 #522188
triadic
#212388 #882123 #238821
tetradic
#212388 #882156 #888621 #218852
square
#212388 #882156 #888621 #218852
split-complementary
#212388 #885221 #568821
monochromatic
#090A25 #151657 #212388 #2D30B9 #4F52D4

Accessibility & contrast

On white

12.65
#212388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#212388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212388
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212388#FFFFFF#000000##FFFFFF
##2123881.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212388;
/* rgb */ color: rgb(33, 35, 136);
/* oklch */ color: oklch(33.6% 0.162 272.6);
Tailwind
colors: {
  custom: {
    50: '#6e5fac',
    500: '#212388',
    950: '#000000',
  },
}
SCSS
$custom: #212388;
$custom-light: #6e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#212388",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 238.835,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33554,
    "c": 0.16226,
    "h": 272.6
  },
  "luminance": 0.03303
}

Semantic roles & 50–950 ramp

primary
#212388
secondary
#B8B54D
accent
#E144E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212388

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

Preview Lab → · Contrast checker → · Palette generator →

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