#212486#212486

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

Color values

HEX#212486
RGBrgb(33, 36, 134)
HSLhsl(238, 60%, 33%)
HSVhsv(238, 75%, 53%)
CMYKcmyk(75.4%, 73.1%, 0%, 47.5%)
CIE-LABlab(21.23, 33.62, -54.74)
CIE-LCHlch(21.23, 64.24, 301.56°)
OKLaboklab(33.5% 0.0071 -0.1584)
OKLCHoklch(33.5% 0.159 272.6)
XYZxyz(5.5597, 3.3057, 22.8947)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212486 #868321
analogous
#215686 #212486 #512186
triadic
#212486 #862124 #248621
tetradic
#212486 #862156 #868321 #218651
square
#212486 #862156 #868321 #218651
split-complementary
#212486 #865121 #568621
monochromatic
#090A24 #151755 #212486 #2D31B7 #4E52D3

Accessibility & contrast

On white

12.64
#212486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212486
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212486#FFFFFF#000000##FFFFFF
##2124861.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212486;
/* rgb */ color: rgb(33, 36, 134);
/* oklch */ color: oklch(33.5% 0.159 272.6);
Tailwind
colors: {
  custom: {
    50: '#6d5faa',
    500: '#212486',
    950: '#000000',
  },
}
SCSS
$custom: #212486;
$custom-light: #6d5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#212486",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 134
  },
  "hsl": {
    "h": 238.218,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.335,
    "c": 0.15853,
    "h": 272.6
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212486

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

Preview Lab → · Contrast checker → · Palette generator →

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