#212A8E#212A8E

#212A8E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.162 H 270.9°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#212A8E
RGBrgb(33, 42, 142)
HSLhsl(235, 62%, 34%)
HSVhsv(235, 77%, 56%)
CMYKcmyk(76.8%, 70.4%, 0%, 44.3%)
CIE-LABlab(23.44, 32.72, -56.09)
CIE-LCHlch(23.44, 64.94, 300.26°)
OKLaboklab(35.34% 0.0027 -0.1623)
OKLCHoklch(35.34% 0.162 270.9)
XYZxyz(6.3360, 3.9316, 26.0109)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A8E #8E8521
analogous
#21618E #212A8E #4F218E
triadic
#212A8E #8E212A #2A8E21
tetradic
#212A8E #8E2161 #8E8521 #218E4F
square
#212A8E #8E2161 #8E8521 #218E4F
split-complementary
#212A8E #8E4F21 #618E21
monochromatic
#0A0D2B #151B5C #212A8E #2D39C0 #525DD7

Accessibility & contrast

On white

11.76
#212A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#212A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A8E
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A8E#FFFFFF#000000##FFFFFF
##212A8E1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212a8e;
/* rgb */ color: rgb(33, 42, 142);
/* oklch */ color: oklch(35.3% 0.162 270.9);
Tailwind
colors: {
  custom: {
    50: '#6f64b0',
    500: '#212a8e',
    950: '#000000',
  },
}
SCSS
$custom: #212a8e;
$custom-light: #6f64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#212a8e",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 235.046,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35343,
    "c": 0.16233,
    "h": 270.9
  },
  "luminance": 0.03932
}

Semantic roles & 50–950 ramp

primary
#212A8E
secondary
#BAB250
accent
#D842E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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