#212E7F#212E7F

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

Color values

HEX#212E7F
RGBrgb(33, 46, 127)
HSLhsl(232, 59%, 31%)
HSVhsv(232, 74%, 50%)
CMYKcmyk(74%, 63.8%, 0%, 50.2%)
CIE-LABlab(23.03, 24.38, -47.38)
CIE-LCHlch(23.03, 53.28, 297.23°)
OKLaboklab(34.61% 0.0011 -0.1368)
OKLCHoklch(34.61% 0.137 270.5)
XYZxyz(5.4337, 3.8091, 20.5234)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E7F #7F7221
analogous
#215D7F #212E7F #43217F
triadic
#212E7F #7F212E #2E7F21
tetradic
#212E7F #7F215D #7F7221 #217F43
square
#212E7F #7F215D #7F7221 #217F43
split-complementary
#212E7F #7F4321 #5D7F21
monochromatic
#080B1E #141C4E #212E7F #2E40B0 #4A5DD0

Accessibility & contrast

On white

11.92
#212E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212E7F
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E7F#FFFFFF#000000##FFFFFF
##212E7F1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212e7f;
/* rgb */ color: rgb(33, 46, 127);
/* oklch */ color: oklch(34.6% 0.137 270.5);
Tailwind
colors: {
  custom: {
    50: '#6b66a5',
    500: '#212e7f',
    950: '#000000',
  },
}
SCSS
$custom: #212e7f;
$custom-light: #6b66a5;
$custom-dark: #000000;
JSON
{
  "hex": "#212e7f",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 231.702,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34605,
    "c": 0.13679,
    "h": 270.5
  },
  "luminance": 0.0381
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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