#212873#212873

#212873 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.127 H 272.8°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#212873
RGBrgb(33, 40, 115)
HSLhsl(235, 55%, 29%)
HSVhsv(235, 71%, 45%)
CMYKcmyk(71.3%, 65.2%, 0%, 54.9%)
CIE-LABlab(20.35, 23.91, -44.11)
CIE-LCHlch(20.35, 50.17, 298.46°)
OKLaboklab(32.3% 0.0063 -0.1272)
OKLCHoklch(32.3% 0.127 272.8)
XYZxyz(4.4795, 3.0783, 16.5744)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212873 #736C21
analogous
#215173 #212873 #432173
triadic
#212873 #732128 #287321
tetradic
#212873 #732151 #736C21 #217343
square
#212873 #732151 #736C21 #217343
split-complementary
#212873 #734321 #517321
monochromatic
#070818 #131743 #212873 #2F39A3 #4550CA

Accessibility & contrast

On white

13.00
#212873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#212873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212873
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212873#FFFFFF#000000##FFFFFF
##2128731.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212873;
/* rgb */ color: rgb(33, 40, 115);
/* oklch */ color: oklch(32.3% 0.127 272.8);
Tailwind
colors: {
  custom: {
    50: '#68629c',
    500: '#212873',
    950: '#000000',
  },
}
SCSS
$custom: #212873;
$custom-light: #68629c;
$custom-dark: #000000;
JSON
{
  "hex": "#212873",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 234.878,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32298,
    "c": 0.12741,
    "h": 272.8
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#212873
secondary
#A69E49
accent
#D249DF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212873

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

Preview Lab → · Contrast checker → · Palette generator →

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