#212885#212885

#212885 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.153 H 271.8°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#212885
RGBrgb(33, 40, 133)
HSLhsl(236, 60%, 33%)
HSVhsv(236, 75%, 52%)
CMYKcmyk(75.2%, 69.9%, 0%, 47.8%)
CIE-LABlab(22.07, 30.69, -52.74)
CIE-LCHlch(22.07, 61.02, 300.20°)
OKLaboklab(34.07% 0.0049 -0.1525)
OKLCHoklch(34.07% 0.153 271.8)
XYZxyz(5.6182, 3.5338, 22.5718)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212885 #857E21
analogous
#215A85 #212885 #4C2185
triadic
#212885 #852128 #288521
tetradic
#212885 #85215A #857E21 #21854C
square
#212885 #85215A #857E21 #21854C
split-complementary
#212885 #854C21 #5A8521
monochromatic
#090B23 #151954 #212885 #2D37B6 #4D57D3

Accessibility & contrast

On white

12.30
#212885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212885
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212885#FFFFFF#000000##FFFFFF
##2128851.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212885;
/* rgb */ color: rgb(33, 40, 133);
/* oklch */ color: oklch(34.1% 0.153 271.8);
Tailwind
colors: {
  custom: {
    50: '#6d62a9',
    500: '#212885',
    950: '#000000',
  },
}
SCSS
$custom: #212885;
$custom-light: #6d62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#212885",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 235.8,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34072,
    "c": 0.1526,
    "h": 271.8
  },
  "luminance": 0.03534
}

Semantic roles & 50–950 ramp

primary
#212885
secondary
#B6AF4C
accent
#D844E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212885

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

Preview Lab → · Contrast checker → · Palette generator →

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