#212286#212286

#212286 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.161 H 272.9°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#212286
RGBrgb(33, 34, 134)
HSLhsl(239, 60%, 33%)
HSVhsv(239, 75%, 53%)
CMYKcmyk(75.4%, 74.6%, 0%, 47.5%)
CIE-LABlab(20.78, 34.86, -55.48)
CIE-LCHlch(20.78, 65.52, 302.15°)
OKLaboklab(33.18% 0.0082 -0.1605)
OKLCHoklch(33.18% 0.161 272.9)
XYZxyz(5.5009, 3.1881, 22.8751)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212286 #868521
analogous
#215486 #212286 #522186
triadic
#212286 #862122 #228621
tetradic
#212286 #862154 #868521 #218652
square
#212286 #862154 #868521 #218652
split-complementary
#212286 #865221 #548621
monochromatic
#090924 #151655 #212286 #2D2EB7 #4E4FD3

Accessibility & contrast

On white

12.82
#212286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#212286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212286
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212286#FFFFFF#000000##FFFFFF
##2122861.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212286;
/* rgb */ color: rgb(33, 34, 134);
/* oklch */ color: oklch(33.2% 0.161 272.9);
Tailwind
colors: {
  custom: {
    50: '#6e5eaa',
    500: '#212286',
    950: '#000000',
  },
}
SCSS
$custom: #212286;
$custom-light: #6e5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#212286",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 239.406,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3318,
    "c": 0.16072,
    "h": 272.9
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#212286
secondary
#B7B64C
accent
#E244E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212286

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

Preview Lab → · Contrast checker → · Palette generator →

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