#212986#212986

#212986 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.153 H 271.5°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#212986
RGBrgb(33, 41, 134)
HSLhsl(235, 60%, 33%)
HSVhsv(235, 75%, 53%)
CMYKcmyk(75.4%, 69.4%, 0%, 47.5%)
CIE-LABlab(22.41, 30.41, -52.80)
CIE-LCHlch(22.41, 60.93, 299.94°)
OKLaboklab(34.35% 0.0041 -0.1527)
OKLCHoklch(34.35% 0.153 271.5)
XYZxyz(5.7218, 3.6298, 22.9487)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212986 #867E21
analogous
#215B86 #212986 #4C2186
triadic
#212986 #862129 #298621
tetradic
#212986 #86215B #867E21 #21864C
square
#212986 #86215B #867E21 #21864C
split-complementary
#212986 #864C21 #5B8621
monochromatic
#090B24 #151A55 #212986 #2D38B7 #4E59D3

Accessibility & contrast

On white

12.17
#212986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212986
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212986#FFFFFF#000000##FFFFFF
##2129861.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212986;
/* rgb */ color: rgb(33, 41, 134);
/* oklch */ color: oklch(34.4% 0.153 271.5);
Tailwind
colors: {
  custom: {
    50: '#6d63aa',
    500: '#212986',
    950: '#000000',
  },
}
SCSS
$custom: #212986;
$custom-light: #6d63aa;
$custom-dark: #000000;
JSON
{
  "hex": "#212986",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 235.248,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34351,
    "c": 0.15277,
    "h": 271.5
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#212986
secondary
#B7AE4C
accent
#D744E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212986

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

Preview Lab → · Contrast checker → · Palette generator →

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