#212886#212886

#212886 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.154 H 271.8°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#212886
RGBrgb(33, 40, 134)
HSLhsl(236, 60%, 33%)
HSVhsv(236, 75%, 53%)
CMYKcmyk(75.4%, 70.1%, 0%, 47.5%)
CIE-LABlab(22.17, 31.06, -53.20)
CIE-LCHlch(22.17, 61.60, 300.28°)
OKLaboklab(34.17% 0.0048 -0.1539)
OKLCHoklch(34.17% 0.154 271.8)
XYZxyz(5.6876, 3.5616, 22.9373)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212886 #867F21
analogous
#215A86 #212886 #4D2186
triadic
#212886 #862128 #288621
tetradic
#212886 #86215A #867F21 #21864D
square
#212886 #86215A #867F21 #21864D
split-complementary
#212886 #864D21 #5A8621
monochromatic
#090B24 #151955 #212886 #2D37B7 #4E57D3

Accessibility & contrast

On white

12.26
#212886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#212886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212886
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212886#FFFFFF#000000##FFFFFF
##2128861.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212886;
/* rgb */ color: rgb(33, 40, 134);
/* oklch */ color: oklch(34.2% 0.154 271.8);
Tailwind
colors: {
  custom: {
    50: '#6d62aa',
    500: '#212886',
    950: '#000000',
  },
}
SCSS
$custom: #212886;
$custom-light: #6d62aa;
$custom-dark: #000000;
JSON
{
  "hex": "#212886",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 235.842,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34175,
    "c": 0.15394,
    "h": 271.8
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

primary
#212886
secondary
#B7AF4C
accent
#D944E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212886

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

Preview Lab → · Contrast checker → · Palette generator →

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