#212D80#212D80

#212D80 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.140 H 270.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#212D80
RGBrgb(33, 45, 128)
HSLhsl(232, 59%, 32%)
HSVhsv(232, 74%, 50%)
CMYKcmyk(74.2%, 64.8%, 0%, 49.8%)
CIE-LABlab(22.86, 25.45, -48.30)
CIE-LCHlch(22.86, 54.59, 297.79°)
OKLaboklab(34.5% 0.0018 -0.1395)
OKLCHoklch(34.5% 0.14 270.7)
XYZxyz(5.4605, 3.7581, 20.8555)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D80 #807421
analogous
#215D80 #212D80 #452180
triadic
#212D80 #80212D #2D8021
tetradic
#212D80 #80215D #807421 #218045
square
#212D80 #80215D #807421 #218045
split-complementary
#212D80 #804521 #5D8021
monochromatic
#080B1F #141C4F #212D80 #2E3EB1 #4B5CD1

Accessibility & contrast

On white

11.99
#212D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#212D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D80
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D80#FFFFFF#000000##FFFFFF
##212D801.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212d80;
/* rgb */ color: rgb(33, 45, 128);
/* oklch */ color: oklch(34.5% 0.140 270.7);
Tailwind
colors: {
  custom: {
    50: '#6b65a6',
    500: '#212d80',
    950: '#000000',
  },
}
SCSS
$custom: #212d80;
$custom-light: #6b65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#212d80",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 128
  },
  "hsl": {
    "h": 232.421,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34503,
    "c": 0.1395,
    "h": 270.7
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#212D80
secondary
#B3A54A
accent
#CE46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #212D80

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

Preview Lab → · Contrast checker → · Palette generator →

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