#212E82#212E82

#212E82 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.141 H 270.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#212E82
RGBrgb(33, 46, 130)
HSLhsl(232, 60%, 32%)
HSVhsv(232, 75%, 51%)
CMYKcmyk(74.6%, 64.6%, 0%, 49%)
CIE-LABlab(23.30, 25.54, -48.83)
CIE-LCHlch(23.30, 55.10, 297.61°)
OKLaboklab(34.89% 0.001 -0.141)
OKLCHoklch(34.89% 0.141 270.4)
XYZxyz(5.6321, 3.8885, 21.5685)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E82 #827521
analogous
#215F82 #212E82 #452182
triadic
#212E82 #82212E #2E8221
tetradic
#212E82 #82215F #827521 #218245
square
#212E82 #82215F #827521 #218245
split-complementary
#212E82 #824521 #5F8221
monochromatic
#080B20 #151D51 #212E82 #2D3FB3 #4C5ED2

Accessibility & contrast

On white

11.81
#212E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E82
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E82#FFFFFF#000000##FFFFFF
##212E821.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212e82;
/* rgb */ color: rgb(33, 46, 130);
/* oklch */ color: oklch(34.9% 0.141 270.4);
Tailwind
colors: {
  custom: {
    50: '#6b66a7',
    500: '#212e82',
    950: '#000000',
  },
}
SCSS
$custom: #212e82;
$custom-light: #6b66a7;
$custom-dark: #000000;
JSON
{
  "hex": "#212e82",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 130
  },
  "hsl": {
    "h": 231.959,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34887,
    "c": 0.14105,
    "h": 270.4
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#212E82
secondary
#B4A64A
accent
#CE45E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #212E82

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

Preview Lab → · Contrast checker → · Palette generator →

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