#212AAA#212AAA

#212AAA is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.198 H 269.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#212AAA
RGBrgb(33, 42, 170)
HSLhsl(236, 67%, 40%)
HSVhsv(236, 81%, 67%)
CMYKcmyk(80.6%, 75.3%, 0%, 33.3%)
CIE-LABlab(26.39, 42.69, -68.34)
CIE-LCHlch(26.39, 80.58, 301.99°)
OKLaboklab(38.34% -0.0011 -0.198)
OKLCHoklch(38.34% 0.198 269.7)
XYZxyz(8.7084, 4.8805, 38.5055)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212AAA #AAA121
analogous
#216FAA #212AAA #5C21AA
triadic
#212AAA #AA212A #2AAA21
tetradic
#212AAA #AA216F #AAA121 #21AA5C
square
#212AAA #AA216F #AAA121 #21AA5C
split-complementary
#212AAA #AA5C21 #6FAA21
monochromatic
#0D1143 #171D77 #212AAA #313CD7 #646DE1

Accessibility & contrast

On white

10.63
#212AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212AAA
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212AAA#FFFFFF#000000##FFFFFF
##212AAA1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AE
Deuteranopia (green-blind)
#0038A8
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #212aaa;
/* rgb */ color: rgb(33, 42, 170);
/* oklch */ color: oklch(38.3% 0.198 269.7);
Tailwind
colors: {
  custom: {
    50: '#7665c5',
    500: '#212aaa',
    950: '#000000',
  },
}
SCSS
$custom: #212aaa;
$custom-light: #7665c5;
$custom-dark: #000000;
JSON
{
  "hex": "#212aaa",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 236.058,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38336,
    "c": 0.19798,
    "h": 269.7
  },
  "luminance": 0.04882
}

Semantic roles & 50–950 ramp

primary
#212AAA
secondary
#C6C061
accent
#DF3DEA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #212AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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