#212786#212786

#212786 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.155 H 272.0°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#212786
RGBrgb(33, 39, 134)
HSLhsl(236, 60%, 33%)
HSVhsv(236, 75%, 53%)
CMYKcmyk(75.4%, 70.9%, 0%, 47.5%)
CIE-LABlab(21.93, 31.71, -53.59)
CIE-LCHlch(21.93, 62.27, 300.61°)
OKLaboklab(34% 0.0054 -0.155)
OKLCHoklch(34% 0.155 272)
XYZxyz(5.6543, 3.4950, 22.9262)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212786 #868021
analogous
#215986 #212786 #4E2186
triadic
#212786 #862127 #278621
tetradic
#212786 #862159 #868021 #21864E
square
#212786 #862159 #868021 #21864E
split-complementary
#212786 #864E21 #598621
monochromatic
#090A24 #151955 #212786 #2D35B7 #4E56D3

Accessibility & contrast

On white

12.36
#212786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#212786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212786
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212786#FFFFFF#000000##FFFFFF
##2127861.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212786;
/* rgb */ color: rgb(33, 39, 134);
/* oklch */ color: oklch(34.0% 0.155 272.0);
Tailwind
colors: {
  custom: {
    50: '#6d61aa',
    500: '#212786',
    950: '#000000',
  },
}
SCSS
$custom: #212786;
$custom-light: #6d61aa;
$custom-dark: #000000;
JSON
{
  "hex": "#212786",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 236.436,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34002,
    "c": 0.15511,
    "h": 272
  },
  "luminance": 0.03496
}

Semantic roles & 50–950 ramp

primary
#212786
secondary
#B7B04C
accent
#DA44E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212786

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

Preview Lab → · Contrast checker → · Palette generator →

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