#212C85#212C85

#212C85 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.148 H 270.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#212C85
RGBrgb(33, 44, 133)
HSLhsl(233, 60%, 33%)
HSVhsv(233, 75%, 52%)
CMYKcmyk(75.2%, 66.9%, 0%, 47.8%)
CIE-LABlab(23.06, 28.04, -51.11)
CIE-LCHlch(23.06, 58.29, 298.75°)
OKLaboklab(34.8% 0.0023 -0.1477)
OKLCHoklch(34.8% 0.148 270.9)
XYZxyz(5.7601, 3.8176, 22.6190)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C85 #857A21
analogous
#215E85 #212C85 #482185
triadic
#212C85 #85212C #2C8521
tetradic
#212C85 #85215E #857A21 #218548
square
#212C85 #85215E #857A21 #218548
split-complementary
#212C85 #854821 #5E8521
monochromatic
#090C23 #151C54 #212C85 #2D3CB6 #4D5CD3

Accessibility & contrast

On white

11.91
#212C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#212C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C85
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C85#FFFFFF#000000##FFFFFF
##212C851.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212c85;
/* rgb */ color: rgb(33, 44, 133);
/* oklch */ color: oklch(34.8% 0.148 270.9);
Tailwind
colors: {
  custom: {
    50: '#6c65a9',
    500: '#212c85',
    950: '#000000',
  },
}
SCSS
$custom: #212c85;
$custom-light: #6c65a9;
$custom-dark: #000000;
JSON
{
  "hex": "#212c85",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 133
  },
  "hsl": {
    "h": 233.4,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34796,
    "c": 0.14775,
    "h": 270.9
  },
  "luminance": 0.03818
}

Semantic roles & 50–950 ramp

primary
#212C85
secondary
#B6AA4C
accent
#D244E3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212C85

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

Preview Lab → · Contrast checker → · Palette generator →

#212C85 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva