#212A9A#212A9A

#212A9A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.178 H 270.4°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#212A9A
RGBrgb(33, 42, 154)
HSLhsl(236, 65%, 37%)
HSVhsv(236, 79%, 60%)
CMYKcmyk(78.6%, 72.7%, 0%, 39.6%)
CIE-LABlab(24.68, 37.07, -61.46)
CIE-LCHlch(24.68, 71.78, 301.10°)
OKLaboklab(36.6% 0.0012 -0.178)
OKLCHoklch(36.6% 0.178 270.4)
XYZxyz(7.2859, 4.3115, 31.0138)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A9A #9A9121
analogous
#21679A #212A9A #55219A
triadic
#212A9A #9A212A #2A9A21
tetradic
#212A9A #9A2167 #9A9121 #219A55
square
#212A9A #9A2167 #9A9121 #219A55
split-complementary
#212A9A #9A5521 #679A21
monochromatic
#0B0F35 #161C68 #212A9A #2C38CC #5A63DC

Accessibility & contrast

On white

11.28
#212A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#212A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A9A
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A9A#FFFFFF#000000##FFFFFF
##212A9A1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212a9a;
/* rgb */ color: rgb(33, 42, 154);
/* oklch */ color: oklch(36.6% 0.178 270.4);
Tailwind
colors: {
  custom: {
    50: '#7264b9',
    500: '#212a9a',
    950: '#000000',
  },
}
SCSS
$custom: #212a9a;
$custom-light: #7264b9;
$custom-dark: #000000;
JSON
{
  "hex": "#212a9a",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 235.537,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36601,
    "c": 0.17797,
    "h": 270.4
  },
  "luminance": 0.04312
}

Semantic roles & 50–950 ramp

primary
#212A9A
secondary
#C0B857
accent
#DB40E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #212A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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