#212A8F#212A8F

#212A8F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.164 H 270.9°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#212A8F
RGBrgb(33, 42, 143)
HSLhsl(235, 63%, 35%)
HSVhsv(235, 77%, 56%)
CMYKcmyk(76.9%, 70.6%, 0%, 43.9%)
CIE-LABlab(23.54, 33.09, -56.55)
CIE-LCHlch(23.54, 65.51, 300.33°)
OKLaboklab(35.45% 0.0026 -0.1636)
OKLCHoklch(35.45% 0.164 270.9)
XYZxyz(6.4114, 3.9617, 26.4081)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A8F #8F8621
analogous
#21618F #212A8F #4F218F
triadic
#212A8F #8F212A #2A8F21
tetradic
#212A8F #8F2161 #8F8621 #218F4F
square
#212A8F #8F2161 #8F8621 #218F4F
split-complementary
#212A8F #8F4F21 #618F21
monochromatic
#0A0D2C #161B5D #212A8F #2C39C1 #535ED7

Accessibility & contrast

On white

11.72
#212A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212A8F
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A8F#FFFFFF#000000##FFFFFF
##212A8F1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212a8f;
/* rgb */ color: rgb(33, 42, 143);
/* oklch */ color: oklch(35.4% 0.164 270.9);
Tailwind
colors: {
  custom: {
    50: '#6f64b1',
    500: '#212a8f',
    950: '#000000',
  },
}
SCSS
$custom: #212a8f;
$custom-light: #6f64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#212a8f",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 235.091,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35446,
    "c": 0.16366,
    "h": 270.9
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#212A8F
secondary
#BBB251
accent
#D842E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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