#212B7D#212B7D

#212B7D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.138 H 271.4°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#212B7D
RGBrgb(33, 43, 125)
HSLhsl(233, 58%, 31%)
HSVhsv(233, 74%, 49%)
CMYKcmyk(73.6%, 65.6%, 0%, 51%)
CIE-LABlab(22.06, 25.67, -47.71)
CIE-LCHlch(22.06, 54.17, 298.29°)
OKLaboklab(33.83% 0.0035 -0.1378)
OKLCHoklch(33.83% 0.138 271.4)
XYZxyz(5.1915, 3.5312, 19.8061)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B7D #7D7321
analogous
#21597D #212B7D #45217D
triadic
#212B7D #7D212B #2B7D21
tetradic
#212B7D #7D2159 #7D7321 #217D45
square
#212B7D #7D2159 #7D7321 #217D45
split-complementary
#212B7D #7D4521 #597D21
monochromatic
#070A1C #141A4D #212B7D #2E3CAD #4958CF

Accessibility & contrast

On white

12.31
#212B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#212B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B7D
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B7D#FFFFFF#000000##FFFFFF
##212B7D1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212b7d;
/* rgb */ color: rgb(33, 43, 125);
/* oklch */ color: oklch(33.8% 0.138 271.4);
Tailwind
colors: {
  custom: {
    50: '#6a64a3',
    500: '#212b7d',
    950: '#000000',
  },
}
SCSS
$custom: #212b7d;
$custom-light: #6a64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#212b7d",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 233.478,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33832,
    "c": 0.13782,
    "h": 271.4
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#212B7D
secondary
#B0A54A
accent
#D146E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #212B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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