#212AA4#212AA4

#212AA4 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.191 H 269.9°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#212AA4
RGBrgb(33, 42, 164)
HSLhsl(236, 66%, 39%)
HSVhsv(236, 80%, 64%)
CMYKcmyk(79.9%, 74.4%, 0%, 35.7%)
CIE-LABlab(25.74, 40.61, -65.80)
CIE-LCHlch(25.74, 77.32, 301.68°)
OKLaboklab(37.68% -0.0002 -0.1906)
OKLCHoklch(37.68% 0.191 269.9)
XYZxyz(8.1537, 4.6587, 35.5842)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212AA4 #A49B21
analogous
#216BA4 #212AA4 #5921A4
triadic
#212AA4 #A4212A #2AA421
tetradic
#212AA4 #A4216B #A49B21 #21A459
square
#212AA4 #A4216B #A49B21 #21A459
split-complementary
#212AA4 #A45921 #6BA421
monochromatic
#0C103E #171D71 #212AA4 #2D39D5 #6069DF

Accessibility & contrast

On white

10.87
#212AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#212AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212AA4
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212AA4#FFFFFF#000000##FFFFFF
##212AA41.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #212aa4;
/* rgb */ color: rgb(33, 42, 164);
/* oklch */ color: oklch(37.7% 0.191 269.9);
Tailwind
colors: {
  custom: {
    50: '#7565c0',
    500: '#212aa4',
    950: '#000000',
  },
}
SCSS
$custom: #212aa4;
$custom-light: #7565c0;
$custom-dark: #000000;
JSON
{
  "hex": "#212aa4",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 235.878,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37678,
    "c": 0.19059,
    "h": 269.9
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#212AA4
secondary
#C4BD5D
accent
#DE3EE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #212AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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