#212E8D#212E8D

#212E8D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.156 H 270.1°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#212E8D
RGBrgb(33, 46, 141)
HSLhsl(233, 62%, 34%)
HSVhsv(233, 77%, 55%)
CMYKcmyk(76.6%, 67.4%, 0%, 44.7%)
CIE-LABlab(24.32, 29.73, -54.03)
CIE-LCHlch(24.32, 61.67, 298.82°)
OKLaboklab(35.95% 0.0004 -0.1563)
OKLCHoklch(35.95% 0.156 270.1)
XYZxyz(6.4103, 4.1997, 25.6669)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E8D #8D8021
analogous
#21648D #212E8D #4A218D
triadic
#212E8D #8D212E #2E8D21
tetradic
#212E8D #8D2164 #8D8021 #218D4A
square
#212E8D #8D2164 #8D8021 #218D4A
split-complementary
#212E8D #8D4A21 #648D21
monochromatic
#0A0E2A #151E5B #212E8D #2D3EBF #5262D6

Accessibility & contrast

On white

11.41
#212E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#212E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E8D
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E8D#FFFFFF#000000##FFFFFF
##212E8D1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212e8d;
/* rgb */ color: rgb(33, 46, 141);
/* oklch */ color: oklch(36.0% 0.156 270.1);
Tailwind
colors: {
  custom: {
    50: '#6e67af',
    500: '#212e8d',
    950: '#000000',
  },
}
SCSS
$custom: #212e8d;
$custom-light: #6e67af;
$custom-dark: #000000;
JSON
{
  "hex": "#212e8d",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 232.778,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35951,
    "c": 0.15627,
    "h": 270.1
  },
  "luminance": 0.042
}

Semantic roles & 50–950 ramp

primary
#212E8D
secondary
#BAAD50
accent
#D243E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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