#212BA9#212BA9

#212BA9 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.196 H 269.6°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#212BA9
RGBrgb(33, 43, 169)
HSLhsl(236, 67%, 40%)
HSVhsv(236, 80%, 66%)
CMYKcmyk(80.5%, 74.6%, 0%, 33.7%)
CIE-LABlab(26.49, 41.76, -67.58)
CIE-LCHlch(26.49, 79.44, 301.71°)
OKLaboklab(38.37% -0.0013 -0.1958)
OKLCHoklch(38.37% 0.196 269.6)
XYZxyz(8.6501, 4.9147, 38.0212)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212BA9 #A99F21
analogous
#216FA9 #212BA9 #5B21A9
triadic
#212BA9 #A9212B #2BA921
tetradic
#212BA9 #A9216F #A99F21 #21A95B
square
#212BA9 #A9216F #A99F21 #21A95B
split-complementary
#212BA9 #A95B21 #6FA921
monochromatic
#0D1143 #171E76 #212BA9 #313DD7 #646DE1

Accessibility & contrast

On white

10.59
#212BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#212BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212BA9
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212BA9#FFFFFF#000000##FFFFFF
##212BA91.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#0038A7
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #212ba9;
/* rgb */ color: rgb(33, 43, 169);
/* oklch */ color: oklch(38.4% 0.196 269.6);
Tailwind
colors: {
  custom: {
    50: '#7666c4',
    500: '#212ba9',
    950: '#000000',
  },
}
SCSS
$custom: #212ba9;
$custom-light: #7666c4;
$custom-dark: #000000;
JSON
{
  "hex": "#212ba9",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 235.588,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38374,
    "c": 0.19577,
    "h": 269.6
  },
  "luminance": 0.04916
}

Semantic roles & 50–950 ramp

primary
#212BA9
secondary
#C6BE60
accent
#DE3EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #212BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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