#212A8B#212A8B

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

Color values

HEX#212A8B
RGBrgb(33, 42, 139)
HSLhsl(235, 62%, 34%)
HSVhsv(235, 76%, 55%)
CMYKcmyk(76.3%, 69.8%, 0%, 45.5%)
CIE-LABlab(23.14, 31.61, -54.72)
CIE-LCHlch(23.14, 63.19, 300.02°)
OKLaboklab(35.03% 0.003 -0.1583)
OKLCHoklch(35.03% 0.158 271.1)
XYZxyz(6.1138, 3.8427, 24.8406)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A8B #8B8221
analogous
#215F8B #212A8B #4D218B
triadic
#212A8B #8B212A #2A8B21
tetradic
#212A8B #8B215F #8B8221 #218B4D
square
#212A8B #8B215F #8B8221 #218B4D
split-complementary
#212A8B #8B4D21 #5F8B21
monochromatic
#0A0C28 #151B5A #212A8B #2D39BC #515CD6

Accessibility & contrast

On white

11.87
#212A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#212A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A8B
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A8B#FFFFFF#000000##FFFFFF
##212A8B1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212a8b;
/* rgb */ color: rgb(33, 42, 139);
/* oklch */ color: oklch(35.0% 0.158 271.1);
Tailwind
colors: {
  custom: {
    50: '#6e64ae',
    500: '#212a8b',
    950: '#000000',
  },
}
SCSS
$custom: #212a8b;
$custom-light: #6e64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#212a8b",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 234.906,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35035,
    "c": 0.15833,
    "h": 271.1
  },
  "luminance": 0.03843
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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