#212E80#212E80

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

Color values

HEX#212E80
RGBrgb(33, 46, 128)
HSLhsl(232, 59%, 32%)
HSVhsv(232, 74%, 50%)
CMYKcmyk(74.2%, 64.1%, 0%, 49.8%)
CIE-LABlab(23.12, 24.77, -47.86)
CIE-LCHlch(23.12, 53.89, 297.36°)
OKLaboklab(34.7% 0.0011 -0.1382)
OKLCHoklch(34.7% 0.138 270.4)
XYZxyz(5.4991, 3.8353, 20.8684)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E80 #807321
analogous
#215E80 #212E80 #442180
triadic
#212E80 #80212E #2E8021
tetradic
#212E80 #80215E #807321 #218044
square
#212E80 #80215E #807321 #218044
split-complementary
#212E80 #804421 #5E8021
monochromatic
#080B1F #141D4F #212E80 #2E3FB1 #4B5DD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##212E80#FFFFFF#000000##FFFFFF
##212E801.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)
#003C83
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212e80;
/* rgb */ color: rgb(33, 46, 128);
/* oklch */ color: oklch(34.7% 0.138 270.4);
Tailwind
colors: {
  custom: {
    50: '#6b66a6',
    500: '#212e80',
    950: '#000000',
  },
}
SCSS
$custom: #212e80;
$custom-light: #6b66a6;
$custom-dark: #000000;
JSON
{
  "hex": "#212e80",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 128
  },
  "hsl": {
    "h": 231.789,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34698,
    "c": 0.13822,
    "h": 270.4
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

primary
#212E80
secondary
#B3A44A
accent
#CD46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #212E80

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

Preview Lab → · Contrast checker → · Palette generator →

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