#212E7E#212E7E

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

Color values

HEX#212E7E
RGBrgb(33, 46, 126)
HSLhsl(232, 58%, 31%)
HSVhsv(232, 74%, 49%)
CMYKcmyk(73.8%, 63.5%, 0%, 50.6%)
CIE-LABlab(22.94, 24.00, -46.89)
CIE-LCHlch(22.94, 52.68, 297.10°)
OKLaboklab(34.51% 0.0011 -0.1354)
OKLCHoklch(34.51% 0.135 270.5)
XYZxyz(5.3688, 3.7831, 20.1819)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E7E #7E7121
analogous
#215C7E #212E7E #42217E
triadic
#212E7E #7E212E #2E7E21
tetradic
#212E7E #7E215C #7E7121 #217E42
square
#212E7E #7E215C #7E7121 #217E42
split-complementary
#212E7E #7E4221 #5C7E21
monochromatic
#080B1D #141C4E #212E7E #2E40AE #4A5DD0

Accessibility & contrast

On white

11.95
#212E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212E7E
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E7E#FFFFFF#000000##FFFFFF
##212E7E1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212e7e;
/* rgb */ color: rgb(33, 46, 126);
/* oklch */ color: oklch(34.5% 0.135 270.5);
Tailwind
colors: {
  custom: {
    50: '#6a66a4',
    500: '#212e7e',
    950: '#000000',
  },
}
SCSS
$custom: #212e7e;
$custom-light: #6a66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#212e7e",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 231.613,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34511,
    "c": 0.13537,
    "h": 270.5
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#212E7E
secondary
#B1A24A
accent
#CC46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #212E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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