#212072#212072

#212072 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.136 H 275.4°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#212072
RGBrgb(33, 32, 114)
HSLhsl(241, 56%, 29%)
HSVhsv(241, 72%, 45%)
CMYKcmyk(71.1%, 71.9%, 0%, 55.3%)
CIE-LABlab(18.24, 28.92, -46.93)
CIE-LCHlch(18.24, 55.13, 301.64°)
OKLaboklab(30.73% 0.0127 -0.1356)
OKLCHoklch(30.73% 0.136 275.4)
XYZxyz(4.1800, 2.5709, 16.1923)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212072 #717220
analogous
#204872 #212072 #4A2072
triadic
#212072 #722120 #207221
tetradic
#212072 #722048 #717220 #20724A
square
#212072 #722048 #717220 #20724A
split-complementary
#212072 #724A20 #487220
monochromatic
#070718 #131342 #212072 #2F2DA2 #4442CA

Accessibility & contrast

On white

13.87
#212072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#212072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212072
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212072#FFFFFF#000000##FFFFFF
##2120721.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #212072;
/* rgb */ color: rgb(33, 32, 114);
/* oklch */ color: oklch(30.7% 0.136 275.4);
Tailwind
colors: {
  custom: {
    50: '#695c9b',
    500: '#212072',
    950: '#000000',
  },
}
SCSS
$custom: #212072;
$custom-light: #695c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#212072",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 240.732,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30725,
    "c": 0.13616,
    "h": 275.4
  },
  "luminance": 0.02571
}

Semantic roles & 50–950 ramp

primary
#212072
secondary
#A5A648
accent
#DF48DE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212072

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

Preview Lab → · Contrast checker → · Palette generator →

#212072 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva