#212373#212373

#212373 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.134 H 274.4°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#212373
RGBrgb(33, 35, 115)
HSLhsl(239, 55%, 29%)
HSVhsv(239, 71%, 45%)
CMYKcmyk(71.3%, 69.6%, 0%, 54.9%)
CIE-LABlab(19.07, 27.31, -46.21)
CIE-LCHlch(19.07, 53.68, 300.58°)
OKLaboklab(31.36% 0.0103 -0.1335)
OKLCHoklch(31.36% 0.134 274.4)
XYZxyz(4.3217, 2.7628, 16.5219)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212373 #737121
analogous
#214C73 #212373 #482173
triadic
#212373 #732123 #237321
tetradic
#212373 #73214C #737121 #217348
square
#212373 #73214C #737121 #217348
split-complementary
#212373 #734821 #4C7321
monochromatic
#070718 #131543 #212373 #2F31A3 #4548CA

Accessibility & contrast

On white

13.53
#212373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#212373 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212373
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212373#FFFFFF#000000##FFFFFF
##2123731.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212373;
/* rgb */ color: rgb(33, 35, 115);
/* oklch */ color: oklch(31.4% 0.134 274.4);
Tailwind
colors: {
  custom: {
    50: '#695e9c',
    500: '#212373',
    950: '#000000',
  },
}
SCSS
$custom: #212373;
$custom-light: #695e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#212373",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 115
  },
  "hsl": {
    "h": 238.537,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31357,
    "c": 0.13385,
    "h": 274.4
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#212373
secondary
#A6A449
accent
#DB49DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212373

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

Preview Lab → · Contrast checker → · Palette generator →

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