#212173#212173

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

Color values

HEX#212173
RGBrgb(33, 33, 115)
HSLhsl(240, 55%, 29%)
HSVhsv(240, 71%, 45%)
CMYKcmyk(71.3%, 71.3%, 0%, 54.9%)
CIE-LABlab(18.58, 28.63, -47.02)
CIE-LCHlch(18.58, 55.05, 301.34°)
OKLaboklab(31% 0.0118 -0.1358)
OKLCHoklch(31% 0.136 275)
XYZxyz(4.2645, 2.6485, 16.5028)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212173 #737321
analogous
#214A73 #212173 #4A2173
triadic
#212173 #732121 #217321
tetradic
#212173 #73214A #737321 #21734A
square
#212173 #73214A #737321 #21734A
split-complementary
#212173 #734A21 #4A7321
monochromatic
#070718 #131343 #212173 #2F2FA3 #4545CA

Accessibility & contrast

On white

13.73
#212173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#212173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212173
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212173#FFFFFF#000000##FFFFFF
##2121731.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #212173;
/* rgb */ color: rgb(33, 33, 115);
/* oklch */ color: oklch(31.0% 0.136 275.0);
Tailwind
colors: {
  custom: {
    50: '#695d9c',
    500: '#212173',
    950: '#000000',
  },
}
SCSS
$custom: #212173;
$custom-light: #695d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#212173",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 240,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31002,
    "c": 0.13633,
    "h": 275
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#212173
secondary
#A6A649
accent
#DF49DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212173

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

Preview Lab → · Contrast checker → · Palette generator →

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