#212488#212488

#212488 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.161 H 272.4°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#212488
RGBrgb(33, 36, 136)
HSLhsl(238, 61%, 33%)
HSVhsv(238, 76%, 53%)
CMYKcmyk(75.7%, 73.5%, 0%, 46.7%)
CIE-LABlab(21.44, 34.34, -55.65)
CIE-LCHlch(21.44, 65.39, 301.68°)
OKLaboklab(33.71% 0.0068 -0.161)
OKLCHoklch(33.71% 0.161 272.4)
XYZxyz(5.7005, 3.3621, 23.6363)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212488 #888521
analogous
#215888 #212488 #512188
triadic
#212488 #882124 #248821
tetradic
#212488 #882158 #888521 #218851
square
#212488 #882158 #888521 #218851
split-complementary
#212488 #885121 #588821
monochromatic
#090A25 #151757 #212488 #2D31B9 #4F53D4

Accessibility & contrast

On white

12.56
#212488 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#212488 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212488
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212488#FFFFFF#000000##FFFFFF
##2124881.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.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: #212488;
/* rgb */ color: rgb(33, 36, 136);
/* oklch */ color: oklch(33.7% 0.161 272.4);
Tailwind
colors: {
  custom: {
    50: '#6e5fac',
    500: '#212488',
    950: '#000000',
  },
}
SCSS
$custom: #212488;
$custom-light: #6e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#212488",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 136
  },
  "hsl": {
    "h": 238.252,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33714,
    "c": 0.16116,
    "h": 272.4
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

primary
#212488
secondary
#B8B44D
accent
#DF44E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212488

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

Preview Lab → · Contrast checker → · Palette generator →

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