#212A7A#212A7A

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

Color values

HEX#212A7A
RGBrgb(33, 42, 122)
HSLhsl(234, 57%, 30%)
HSVhsv(234, 73%, 48%)
CMYKcmyk(73%, 65.6%, 0%, 52.2%)
CIE-LABlab(21.52, 25.21, -46.68)
CIE-LCHlch(21.52, 53.05, 298.37°)
OKLaboklab(33.35% 0.0044 -0.1348)
OKLCHoklch(33.35% 0.135 271.9)
XYZxyz(4.9668, 3.3839, 18.8000)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A7A #7A7121
analogous
#21567A #212A7A #45217A
triadic
#212A7A #7A212A #2A7A21
tetradic
#212A7A #7A2156 #7A7121 #217A45
square
#212A7A #7A2156 #7A7121 #217A45
split-complementary
#212A7A #7A4521 #567A21
monochromatic
#07091A #14194A #212A7A #2E3BAA #4855CD

Accessibility & contrast

On white

12.52
#212A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212A7A
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A7A#FFFFFF#000000##FFFFFF
##212A7A1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212a7a;
/* rgb */ color: rgb(33, 42, 122);
/* oklch */ color: oklch(33.4% 0.135 271.9);
Tailwind
colors: {
  custom: {
    50: '#6a63a1',
    500: '#212a7a',
    950: '#000000',
  },
}
SCSS
$custom: #212a7a;
$custom-light: #6a63a1;
$custom-dark: #000000;
JSON
{
  "hex": "#212a7a",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 233.933,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33352,
    "c": 0.13485,
    "h": 271.9
  },
  "luminance": 0.03384
}

Semantic roles & 50–950 ramp

primary
#212A7A
secondary
#ADA34A
accent
#D147E1
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #212A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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