#212A86#212A86

#212A86 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.152 H 271.3°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#212A86
RGBrgb(33, 42, 134)
HSLhsl(235, 60%, 33%)
HSVhsv(235, 75%, 53%)
CMYKcmyk(75.4%, 68.7%, 0%, 47.5%)
CIE-LABlab(22.65, 29.75, -52.40)
CIE-LCHlch(22.65, 60.26, 299.59°)
OKLaboklab(34.53% 0.0035 -0.1515)
OKLCHoklch(34.53% 0.152 271.3)
XYZxyz(5.7568, 3.6999, 22.9604)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A86 #867D21
analogous
#215D86 #212A86 #4A2186
triadic
#212A86 #86212A #2A8621
tetradic
#212A86 #86215D #867D21 #21864A
square
#212A86 #86215D #867D21 #21864A
split-complementary
#212A86 #864A21 #5D8621
monochromatic
#090B24 #151B55 #212A86 #2D39B7 #4E5AD3

Accessibility & contrast

On white

12.07
#212A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A86
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A86#FFFFFF#000000##FFFFFF
##212A861.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212a86;
/* rgb */ color: rgb(33, 42, 134);
/* oklch */ color: oklch(34.5% 0.152 271.3);
Tailwind
colors: {
  custom: {
    50: '#6d63aa',
    500: '#212a86',
    950: '#000000',
  },
}
SCSS
$custom: #212a86;
$custom-light: #6d63aa;
$custom-dark: #000000;
JSON
{
  "hex": "#212a86",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 234.653,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34529,
    "c": 0.15157,
    "h": 271.3
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#212A86
secondary
#B7AD4C
accent
#D544E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212A86

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

Preview Lab → · Contrast checker → · Palette generator →

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