#212A8A#212A8A

#212A8A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.157 H 271.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#212A8A
RGBrgb(33, 42, 138)
HSLhsl(235, 61%, 34%)
HSVhsv(235, 76%, 54%)
CMYKcmyk(76.1%, 69.6%, 0%, 45.9%)
CIE-LABlab(23.05, 31.24, -54.26)
CIE-LCHlch(23.05, 62.61, 299.93°)
OKLaboklab(34.93% 0.0031 -0.1569)
OKLCHoklch(34.93% 0.157 271.1)
XYZxyz(6.0411, 3.8136, 24.4576)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A8A #8A8121
analogous
#215E8A #212A8A #4C218A
triadic
#212A8A #8A212A #2A8A21
tetradic
#212A8A #8A215E #8A8121 #218A4C
square
#212A8A #8A215E #8A8121 #218A4C
split-complementary
#212A8A #8A4C21 #5E8A21
monochromatic
#090C27 #151B59 #212A8A #2D39BB #505CD5

Accessibility & contrast

On white

11.91
#212A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#212A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A8A
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A8A#FFFFFF#000000##FFFFFF
##212A8A1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212a8a;
/* rgb */ color: rgb(33, 42, 138);
/* oklch */ color: oklch(34.9% 0.157 271.1);
Tailwind
colors: {
  custom: {
    50: '#6e64ad',
    500: '#212a8a',
    950: '#000000',
  },
}
SCSS
$custom: #212a8a;
$custom-light: #6e64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#212a8a",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 234.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34933,
    "c": 0.15698,
    "h": 271.1
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#212A8A
secondary
#B9AF4E
accent
#D743E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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