#212D95#212D95

#212D95 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.168 H 270.1°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#212D95
RGBrgb(33, 45, 149)
HSLhsl(234, 64%, 36%)
HSVhsv(234, 78%, 58%)
CMYKcmyk(77.9%, 69.8%, 0%, 41.6%)
CIE-LABlab(24.86, 33.36, -58.09)
CIE-LCHlch(24.86, 66.99, 299.87°)
OKLaboklab(36.58% 0.0003 -0.1681)
OKLCHoklch(36.58% 0.168 270.1)
XYZxyz(6.9885, 4.3693, 28.9030)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D95 #958921
analogous
#216795 #212D95 #4F2195
triadic
#212D95 #95212D #2D9521
tetradic
#212D95 #952167 #958921 #21954F
square
#212D95 #952167 #958921 #21954F
split-complementary
#212D95 #954F21 #679521
monochromatic
#0B0F31 #161E63 #212D95 #2C3CC7 #5764DA

Accessibility & contrast

On white

11.21
#212D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#212D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D95
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D95#FFFFFF#000000##FFFFFF
##212D951.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#004A5D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212d95;
/* rgb */ color: rgb(33, 45, 149);
/* oklch */ color: oklch(36.6% 0.168 270.1);
Tailwind
colors: {
  custom: {
    50: '#7066b5',
    500: '#212d95',
    950: '#000000',
  },
}
SCSS
$custom: #212d95;
$custom-light: #7066b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212d95",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 233.793,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36577,
    "c": 0.16815,
    "h": 270.1
  },
  "luminance": 0.0437
}

Semantic roles & 50–950 ramp

primary
#212D95
secondary
#BEB354
accent
#D641E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212D95

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

Preview Lab → · Contrast checker → · Palette generator →

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