#212E9D#212E9D

#212E9D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.177 H 269.7°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#212E9D
RGBrgb(33, 46, 157)
HSLhsl(234, 65%, 37%)
HSVhsv(234, 79%, 62%)
CMYKcmyk(79%, 70.7%, 0%, 38.4%)
CIE-LABlab(25.89, 35.66, -61.29)
CIE-LCHlch(25.89, 70.90, 300.19°)
OKLaboklab(37.57% -0.0011 -0.1775)
OKLCHoklch(37.57% 0.177 269.7)
XYZxyz(7.6879, 4.7108, 32.3958)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E9D #9D9021
analogous
#216C9D #212E9D #52219D
triadic
#212E9D #9D212E #2E9D21
tetradic
#212E9D #9D216C #9D9021 #219D52
square
#212E9D #9D216C #9D9021 #219D52
split-complementary
#212E9D #9D5221 #6C9D21
monochromatic
#0C1038 #161F6A #212E9D #2C3DD0 #5C69DD

Accessibility & contrast

On white

10.81
#212E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#212E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E9D
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E9D#FFFFFF#000000##FFFFFF
##212E9D1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #212e9d;
/* rgb */ color: rgb(33, 46, 157);
/* oklch */ color: oklch(37.6% 0.177 269.7);
Tailwind
colors: {
  custom: {
    50: '#7267bb',
    500: '#212e9d',
    950: '#000000',
  },
}
SCSS
$custom: #212e9d;
$custom-light: #7267bb;
$custom-dark: #000000;
JSON
{
  "hex": "#212e9d",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 233.71,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37571,
    "c": 0.17747,
    "h": 269.7
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#212E9D
secondary
#C1B659
accent
#D740E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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