#212A7B#212A7B

#212A7B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.136 H 271.8°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#212A7B
RGBrgb(33, 42, 123)
HSLhsl(234, 58%, 31%)
HSVhsv(234, 73%, 48%)
CMYKcmyk(73.2%, 65.9%, 0%, 51.8%)
CIE-LABlab(21.61, 25.59, -47.16)
CIE-LCHlch(21.61, 53.66, 298.48°)
OKLaboklab(33.45% 0.0043 -0.1362)
OKLCHoklch(33.45% 0.136 271.8)
XYZxyz(5.0291, 3.4088, 19.1280)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A7B #7B7221
analogous
#21577B #212A7B #45217B
triadic
#212A7B #7B212A #2A7B21
tetradic
#212A7B #7B2157 #7B7221 #217B45
square
#212A7B #7B2157 #7B7221 #217B45
split-complementary
#212A7B #7B4521 #577B21
monochromatic
#07091A #141A4B #212A7B #2E3AAB #4856CE

Accessibility & contrast

On white

12.49
#212A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#212A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A7B
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A7B#FFFFFF#000000##FFFFFF
##212A7B1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212a7b;
/* rgb */ color: rgb(33, 42, 123);
/* oklch */ color: oklch(33.4% 0.136 271.8);
Tailwind
colors: {
  custom: {
    50: '#6a63a2',
    500: '#212a7b',
    950: '#000000',
  },
}
SCSS
$custom: #212a7b;
$custom-light: #6a63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#212a7b",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 234,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33448,
    "c": 0.13627,
    "h": 271.8
  },
  "luminance": 0.03409
}

Semantic roles & 50–950 ramp

primary
#212A7B
secondary
#AEA44A
accent
#D247E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #212A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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