#212688#212688

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

Color values

HEX#212688
RGBrgb(33, 38, 136)
HSLhsl(237, 61%, 33%)
HSVhsv(237, 76%, 53%)
CMYKcmyk(75.7%, 72.1%, 0%, 46.7%)
CIE-LABlab(21.90, 33.08, -54.90)
CIE-LCHlch(21.90, 64.10, 301.07°)
OKLaboklab(34.04% 0.0057 -0.1588)
OKLCHoklch(34.04% 0.159 272.1)
XYZxyz(5.7627, 3.4865, 23.6570)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212688 #888321
analogous
#215988 #212688 #4F2188
triadic
#212688 #882126 #268821
tetradic
#212688 #882159 #888321 #21884F
square
#212688 #882159 #888321 #21884F
split-complementary
#212688 #884F21 #598821
monochromatic
#090A25 #151857 #212688 #2D34B9 #4F56D4

Accessibility & contrast

On white

12.37
#212688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212688
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212688#FFFFFF#000000##FFFFFF
##2126881.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.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: #212688;
/* rgb */ color: rgb(33, 38, 136);
/* oklch */ color: oklch(34.0% 0.159 272.1);
Tailwind
colors: {
  custom: {
    50: '#6e61ac',
    500: '#212688',
    950: '#000000',
  },
}
SCSS
$custom: #212688;
$custom-light: #6e61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212688",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 136
  },
  "hsl": {
    "h": 237.087,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34041,
    "c": 0.15893,
    "h": 272.1
  },
  "luminance": 0.03487
}

Semantic roles & 50–950 ramp

primary
#212688
secondary
#B8B24D
accent
#DC44E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212688

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

Preview Lab → · Contrast checker → · Palette generator →

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