#212586#212586

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

Color values

HEX#212586
RGBrgb(33, 37, 134)
HSLhsl(238, 60%, 33%)
HSVhsv(238, 75%, 53%)
CMYKcmyk(75.4%, 72.4%, 0%, 47.5%)
CIE-LABlab(21.46, 32.99, -54.36)
CIE-LCHlch(21.46, 63.59, 301.25°)
OKLaboklab(33.66% 0.0066 -0.1573)
OKLCHoklch(33.66% 0.157 272.4)
XYZxyz(5.5904, 3.3671, 22.9049)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212586 #868221
analogous
#215786 #212586 #502186
triadic
#212586 #862125 #258621
tetradic
#212586 #862157 #868221 #218650
square
#212586 #862157 #868221 #218650
split-complementary
#212586 #865021 #578621
monochromatic
#090A24 #151755 #212586 #2D33B7 #4E53D3

Accessibility & contrast

On white

12.55
#212586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212586
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212586#FFFFFF#000000##FFFFFF
##2125861.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212586;
/* rgb */ color: rgb(33, 37, 134);
/* oklch */ color: oklch(33.7% 0.157 272.4);
Tailwind
colors: {
  custom: {
    50: '#6d60aa',
    500: '#212586',
    950: '#000000',
  },
}
SCSS
$custom: #212586;
$custom-light: #6d60aa;
$custom-dark: #000000;
JSON
{
  "hex": "#212586",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 134
  },
  "hsl": {
    "h": 237.624,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33664,
    "c": 0.15741,
    "h": 272.4
  },
  "luminance": 0.03368
}

Semantic roles & 50–950 ramp

primary
#212586
secondary
#B7B24C
accent
#DD44E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212586

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

Preview Lab → · Contrast checker → · Palette generator →

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