#212AA0#212AA0

#212AA0 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.186 H 270.1°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#212AA0
RGBrgb(33, 42, 160)
HSLhsl(236, 66%, 38%)
HSVhsv(236, 79%, 63%)
CMYKcmyk(79.4%, 73.8%, 0%, 37.3%)
CIE-LABlab(25.31, 39.20, -64.08)
CIE-LCHlch(25.31, 75.12, 301.46°)
OKLaboklab(37.24% 0.0004 -0.1856)
OKLCHoklch(37.24% 0.186 270.1)
XYZxyz(7.7982, 4.5164, 33.7117)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212AA0 #A09721
analogous
#2169A0 #212AA0 #5721A0
triadic
#212AA0 #A0212A #2AA021
tetradic
#212AA0 #A02169 #A09721 #21A057
square
#212AA0 #A02169 #A09721 #21A057
split-complementary
#212AA0 #A05721 #69A021
monochromatic
#0C0F3B #171D6D #212AA0 #2B37D3 #5E67DE

Accessibility & contrast

On white

11.03
#212AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#212AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212AA0
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212AA0#FFFFFF#000000##FFFFFF
##212AA01.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00369E
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212aa0;
/* rgb */ color: rgb(33, 42, 160);
/* oklch */ color: oklch(37.2% 0.186 270.1);
Tailwind
colors: {
  custom: {
    50: '#7464bd',
    500: '#212aa0',
    950: '#000000',
  },
}
SCSS
$custom: #212aa0;
$custom-light: #7464bd;
$custom-dark: #000000;
JSON
{
  "hex": "#212aa0",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 235.748,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37244,
    "c": 0.18558,
    "h": 270.1
  },
  "luminance": 0.04517
}

Semantic roles & 50–950 ramp

primary
#212AA0
secondary
#C2BB5B
accent
#DD3FE9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #212AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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