#212372#212372

#212372 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.132 H 274.5°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#212372
RGBrgb(33, 35, 114)
HSLhsl(239, 55%, 29%)
HSVhsv(239, 71%, 45%)
CMYKcmyk(71.1%, 69.3%, 0%, 55.3%)
CIE-LABlab(18.97, 26.93, -45.73)
CIE-LCHlch(18.97, 53.07, 300.50°)
OKLaboklab(31.26% 0.0104 -0.132)
OKLCHoklch(31.26% 0.132 274.5)
XYZxyz(4.2645, 2.7399, 16.2204)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212372 #727021
analogous
#214C72 #212372 #482172
triadic
#212372 #722123 #237221
tetradic
#212372 #72214C #727021 #217248
square
#212372 #72214C #727021 #217248
split-complementary
#212372 #724821 #4C7221
monochromatic
#070718 #131443 #212372 #2F32A1 #4448C9

Accessibility & contrast

On white

13.57
#212372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212372
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212372#FFFFFF#000000##FFFFFF
##2123721.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212372;
/* rgb */ color: rgb(33, 35, 114);
/* oklch */ color: oklch(31.3% 0.132 274.5);
Tailwind
colors: {
  custom: {
    50: '#685e9b',
    500: '#212372',
    950: '#000000',
  },
}
SCSS
$custom: #212372;
$custom-light: #685e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#212372",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 114
  },
  "hsl": {
    "h": 238.519,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31256,
    "c": 0.13244,
    "h": 274.5
  },
  "luminance": 0.0274
}

Semantic roles & 50–950 ramp

primary
#212372
secondary
#A5A349
accent
#DB49DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212372

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

Preview Lab → · Contrast checker → · Palette generator →

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