#212D83#212D83

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

Color values

HEX#212D83
RGBrgb(33, 45, 131)
HSLhsl(233, 60%, 32%)
HSVhsv(233, 75%, 51%)
CMYKcmyk(74.8%, 65.6%, 0%, 48.6%)
CIE-LABlab(23.13, 26.60, -49.74)
CIE-LCHlch(23.13, 56.40, 298.14°)
OKLaboklab(34.79% 0.0017 -0.1437)
OKLCHoklch(34.79% 0.144 270.7)
XYZxyz(5.6609, 3.8382, 21.9108)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D83 #837721
analogous
#215E83 #212D83 #462183
triadic
#212D83 #83212D #2D8321
tetradic
#212D83 #83215E #837721 #218346
square
#212D83 #83215E #837721 #218346
split-complementary
#212D83 #834621 #5E8321
monochromatic
#080B21 #151C52 #212D83 #2D3EB4 #4C5DD2

Accessibility & contrast

On white

11.88
#212D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#212D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D83
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D83#FFFFFF#000000##FFFFFF
##212D831.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C86
Deuteranopia (green-blind)
#003381
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212d83;
/* rgb */ color: rgb(33, 45, 131);
/* oklch */ color: oklch(34.8% 0.144 270.7);
Tailwind
colors: {
  custom: {
    50: '#6c66a8',
    500: '#212d83',
    950: '#000000',
  },
}
SCSS
$custom: #212d83;
$custom-light: #6c66a8;
$custom-dark: #000000;
JSON
{
  "hex": "#212d83",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 131
  },
  "hsl": {
    "h": 232.653,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3479,
    "c": 0.14372,
    "h": 270.7
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#212D83
secondary
#B5A84B
accent
#D045E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #212D83

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

Preview Lab → · Contrast checker → · Palette generator →

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