#212A8D#212A8D

#212A8D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.161 H 271.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#212A8D
RGBrgb(33, 42, 141)
HSLhsl(235, 62%, 34%)
HSVhsv(235, 77%, 55%)
CMYKcmyk(76.6%, 70.2%, 0%, 44.7%)
CIE-LABlab(23.34, 32.35, -55.63)
CIE-LCHlch(23.34, 64.36, 300.18°)
OKLaboklab(35.24% 0.0028 -0.161)
OKLCHoklch(35.24% 0.161 271)
XYZxyz(6.2612, 3.9017, 25.6173)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A8D #8D8421
analogous
#21608D #212A8D #4E218D
triadic
#212A8D #8D212A #2A8D21
tetradic
#212A8D #8D2160 #8D8421 #218D4E
square
#212A8D #8D2160 #8D8421 #218D4E
split-complementary
#212A8D #8D4E21 #608D21
monochromatic
#0A0C2A #151B5B #212A8D #2D39BF #525DD6

Accessibility & contrast

On white

11.80
#212A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A8D
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A8D#FFFFFF#000000##FFFFFF
##212A8D1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212a8d;
/* rgb */ color: rgb(33, 42, 141);
/* oklch */ color: oklch(35.2% 0.161 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f64af',
    500: '#212a8d',
    950: '#000000',
  },
}
SCSS
$custom: #212a8d;
$custom-light: #6f64af;
$custom-dark: #000000;
JSON
{
  "hex": "#212a8d",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 235,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3524,
    "c": 0.161,
    "h": 271
  },
  "luminance": 0.03902
}

Semantic roles & 50–950 ramp

primary
#212A8D
secondary
#BAB150
accent
#D843E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080511
muted
#7B7A80

Preview Lab

Preview with #212A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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