#212A9B#212A9B

#212A9B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.179 H 270.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#212A9B
RGBrgb(33, 42, 155)
HSLhsl(236, 65%, 37%)
HSVhsv(236, 79%, 61%)
CMYKcmyk(78.7%, 72.9%, 0%, 39.2%)
CIE-LABlab(24.78, 37.43, -61.90)
CIE-LCHlch(24.78, 72.34, 301.16°)
OKLaboklab(36.71% 0.0011 -0.1792)
OKLCHoklch(36.71% 0.179 270.3)
XYZxyz(7.3695, 4.3450, 31.4543)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A9B #9B9221
analogous
#21679B #212A9B #55219B
triadic
#212A9B #9B212A #2A9B21
tetradic
#212A9B #9B2167 #9B9221 #219B55
square
#212A9B #9B2167 #9B9221 #219B55
split-complementary
#212A9B #9B5521 #679B21
monochromatic
#0C0F36 #161C69 #212A9B #2C38CD #5A64DC

Accessibility & contrast

On white

11.23
#212A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#212A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A9B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A9B#FFFFFF#000000##FFFFFF
##212A9B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212a9b;
/* rgb */ color: rgb(33, 42, 155);
/* oklch */ color: oklch(36.7% 0.179 270.3);
Tailwind
colors: {
  custom: {
    50: '#7264ba',
    500: '#212a9b',
    950: '#000000',
  },
}
SCSS
$custom: #212a9b;
$custom-light: #7264ba;
$custom-dark: #000000;
JSON
{
  "hex": "#212a9b",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 235.574,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36707,
    "c": 0.17925,
    "h": 270.3
  },
  "luminance": 0.04346
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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