#212D7A#212D7A

#212D7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.131 H 270.9°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#212D7A
RGBrgb(33, 45, 122)
HSLhsl(232, 57%, 30%)
HSVhsv(232, 73%, 48%)
CMYKcmyk(73%, 63.1%, 0%, 52.2%)
CIE-LABlab(22.32, 23.14, -45.37)
CIE-LCHlch(22.32, 50.93, 297.02°)
OKLaboklab(33.94% 0.002 -0.1309)
OKLCHoklch(33.94% 0.131 270.9)
XYZxyz(5.0772, 3.6047, 18.8368)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D7A #7A6E21
analogous
#21597A #212D7A #41217A
triadic
#212D7A #7A212D #2D7A21
tetradic
#212D7A #7A2159 #7A6E21 #217A41
square
#212D7A #7A2159 #7A6E21 #217A41
split-complementary
#212D7A #7A4121 #597A21
monochromatic
#07091A #141B4A #212D7A #2E3FAA #485ACD

Accessibility & contrast

On white

12.20
#212D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D7A
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D7A#FFFFFF#000000##FFFFFF
##212D7A1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212d7a;
/* rgb */ color: rgb(33, 45, 122);
/* oklch */ color: oklch(33.9% 0.131 270.9);
Tailwind
colors: {
  custom: {
    50: '#6965a1',
    500: '#212d7a',
    950: '#000000',
  },
}
SCSS
$custom: #212d7a;
$custom-light: #6965a1;
$custom-dark: #000000;
JSON
{
  "hex": "#212d7a",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 231.91,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33941,
    "c": 0.13093,
    "h": 270.9
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#212D7A
secondary
#ADA04A
accent
#CC47E1
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #212D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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