#212386#212386

#212386 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.160 H 272.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#212386
RGBrgb(33, 35, 134)
HSLhsl(239, 60%, 33%)
HSVhsv(239, 75%, 53%)
CMYKcmyk(75.4%, 73.9%, 0%, 47.5%)
CIE-LABlab(21.00, 34.25, -55.11)
CIE-LCHlch(21.00, 64.89, 301.86°)
OKLaboklab(33.34% 0.0077 -0.1594)
OKLCHoklch(33.34% 0.16 272.8)
XYZxyz(5.5299, 3.2461, 22.8848)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212386 #868421
analogous
#215586 #212386 #512186
triadic
#212386 #862123 #238621
tetradic
#212386 #862155 #868421 #218651
square
#212386 #862155 #868421 #218651
split-complementary
#212386 #865121 #558621
monochromatic
#090924 #151655 #212386 #2D30B7 #4E51D3

Accessibility & contrast

On white

12.73
#212386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#212386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212386
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212386#FFFFFF#000000##FFFFFF
##2123861.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212386;
/* rgb */ color: rgb(33, 35, 134);
/* oklch */ color: oklch(33.3% 0.160 272.8);
Tailwind
colors: {
  custom: {
    50: '#6e5faa',
    500: '#212386',
    950: '#000000',
  },
}
SCSS
$custom: #212386;
$custom-light: #6e5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#212386",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 238.812,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33338,
    "c": 0.15963,
    "h": 272.8
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

primary
#212386
secondary
#B7B44C
accent
#E044E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212386

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

Preview Lab → · Contrast checker → · Palette generator →

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