#212AA8#212AA8

#212AA8 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.196 H 269.8°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#212AA8
RGBrgb(33, 42, 168)
HSLhsl(236, 67%, 39%)
HSVhsv(236, 80%, 66%)
CMYKcmyk(80.4%, 75%, 0%, 34.1%)
CIE-LABlab(26.17, 42.00, -67.50)
CIE-LCHlch(26.17, 79.50, 301.89°)
OKLaboklab(38.12% -0.0008 -0.1955)
OKLCHoklch(38.12% 0.196 269.8)
XYZxyz(8.5206, 4.8054, 37.5167)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212AA8 #A89F21
analogous
#216EA8 #212AA8 #5C21A8
triadic
#212AA8 #A8212A #2AA821
tetradic
#212AA8 #A8216E #A89F21 #21A85C
square
#212AA8 #A8216E #A89F21 #21A85C
split-complementary
#212AA8 #A85C21 #6EA821
monochromatic
#0D1042 #171D75 #212AA8 #303BD6 #636BE0

Accessibility & contrast

On white

10.71
#212AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#212AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212AA8
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212AA8#FFFFFF#000000##FFFFFF
##212AA81.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212aa8;
/* rgb */ color: rgb(33, 42, 168);
/* oklch */ color: oklch(38.1% 0.196 269.8);
Tailwind
colors: {
  custom: {
    50: '#7665c3',
    500: '#212aa8',
    950: '#000000',
  },
}
SCSS
$custom: #212aa8;
$custom-light: #7665c3;
$custom-dark: #000000;
JSON
{
  "hex": "#212aa8",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 236,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38116,
    "c": 0.19553,
    "h": 269.8
  },
  "luminance": 0.04806
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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