#212487#212487

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

Color values

HEX#212487
RGBrgb(33, 36, 135)
HSLhsl(238, 61%, 33%)
HSVhsv(238, 76%, 53%)
CMYKcmyk(75.6%, 73.3%, 0%, 47.1%)
CIE-LABlab(21.33, 33.98, -55.20)
CIE-LCHlch(21.33, 64.82, 301.62°)
OKLaboklab(33.61% 0.007 -0.1597)
OKLCHoklch(33.61% 0.16 272.5)
XYZxyz(5.6298, 3.3338, 23.2638)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212487 #878421
analogous
#215787 #212487 #512187
triadic
#212487 #872124 #248721
tetradic
#212487 #872157 #878421 #218751
square
#212487 #872157 #878421 #218751
split-complementary
#212487 #875121 #578721
monochromatic
#090A25 #151756 #212487 #2D31B8 #4F52D4

Accessibility & contrast

On white

12.60
#212487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212487
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212487#FFFFFF#000000##FFFFFF
##2124871.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212487;
/* rgb */ color: rgb(33, 36, 135);
/* oklch */ color: oklch(33.6% 0.160 272.5);
Tailwind
colors: {
  custom: {
    50: '#6e5fab',
    500: '#212487',
    950: '#000000',
  },
}
SCSS
$custom: #212487;
$custom-light: #6e5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#212487",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 238.235,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33606,
    "c": 0.15985,
    "h": 272.5
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212487

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

Preview Lab → · Contrast checker → · Palette generator →

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