#212AA9#212AA9

#212AA9 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.197 H 269.7°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#212AA9
RGBrgb(33, 42, 169)
HSLhsl(236, 67%, 40%)
HSVhsv(236, 80%, 66%)
CMYKcmyk(80.5%, 75.1%, 0%, 33.7%)
CIE-LABlab(26.28, 42.34, -67.92)
CIE-LCHlch(26.28, 80.04, 301.94°)
OKLaboklab(38.23% -0.001 -0.1968)
OKLCHoklch(38.23% 0.197 269.7)
XYZxyz(8.6141, 4.8428, 38.0092)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212AA9 #A9A021
analogous
#216EA9 #212AA9 #5C21A9
triadic
#212AA9 #A9212A #2AA921
tetradic
#212AA9 #A9216E #A9A021 #21A95C
square
#212AA9 #A9216E #A9A021 #21A95C
split-complementary
#212AA9 #A95C21 #6EA921
monochromatic
#0D1143 #171D76 #212AA9 #313CD7 #646CE1

Accessibility & contrast

On white

10.67
#212AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#212AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212AA9
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212AA9#FFFFFF#000000##FFFFFF
##212AA91.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#0037A7
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #212aa9;
/* rgb */ color: rgb(33, 42, 169);
/* oklch */ color: oklch(38.2% 0.197 269.7);
Tailwind
colors: {
  custom: {
    50: '#7665c4',
    500: '#212aa9',
    950: '#000000',
  },
}
SCSS
$custom: #212aa9;
$custom-light: #7665c4;
$custom-dark: #000000;
JSON
{
  "hex": "#212aa9",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 236.029,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38226,
    "c": 0.19676,
    "h": 269.7
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#212AA9
secondary
#C6BF60
accent
#DF3EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #212AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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