#212A7C#212A7C

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

Color values

HEX#212A7C
RGBrgb(33, 42, 124)
HSLhsl(234, 58%, 31%)
HSVhsv(234, 73%, 49%)
CMYKcmyk(73.4%, 66.1%, 0%, 51.4%)
CIE-LABlab(21.70, 25.97, -47.65)
CIE-LCHlch(21.70, 54.27, 298.59°)
OKLaboklab(33.54% 0.0043 -0.1376)
OKLCHoklch(33.54% 0.138 271.8)
XYZxyz(5.0920, 3.4340, 19.4593)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A7C #7C7321
analogous
#21577C #212A7C #45217C
triadic
#212A7C #7C212A #2A7C21
tetradic
#212A7C #7C2157 #7C7321 #217C45
square
#212A7C #7C2157 #7C7321 #217C45
split-complementary
#212A7C #7C4521 #577C21
monochromatic
#07091B #141A4C #212A7C #2E3AAC #4956CF

Accessibility & contrast

On white

12.45
#212A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#212A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A7C
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A7C#FFFFFF#000000##FFFFFF
##212A7C1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212a7c;
/* rgb */ color: rgb(33, 42, 124);
/* oklch */ color: oklch(33.5% 0.138 271.8);
Tailwind
colors: {
  custom: {
    50: '#6a63a3',
    500: '#212a7c',
    950: '#000000',
  },
}
SCSS
$custom: #212a7c;
$custom-light: #6a63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#212a7c",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 234.066,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33544,
    "c": 0.13769,
    "h": 271.8
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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