#201872#201872

#201872 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.145 H 276.5°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#201872
RGBrgb(32, 24, 114)
HSLhsl(245, 65%, 27%)
HSVhsv(245, 79%, 45%)
CMYKcmyk(71.9%, 78.9%, 0%, 55.3%)
CIE-LABlab(16.38, 33.75, -49.99)
CIE-LCHlch(16.38, 60.32, 304.02°)
OKLaboklab(29.38% 0.0166 -0.1445)
OKLCHoklch(29.38% 0.145 276.5)
XYZxyz(3.9586, 2.1749, 16.1275)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#201872 #6A7218
analogous
#183D72 #201872 #4D1872
triadic
#201872 #722018 #187220
tetradic
#201872 #72183D #6A7218 #18724D
square
#201872 #72183D #6A7218 #18724D
split-complementary
#201872 #724D18 #3D7218
monochromatic
#070519 #120D3F #201872 #2E23A5 #3F31D4

Accessibility & contrast

On white

14.63
#201872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#201872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #201872
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##201872#FFFFFF#000000##FFFFFF
##2018721.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #201872;
/* rgb */ color: rgb(32, 24, 114);
/* oklch */ color: oklch(29.4% 0.145 276.5);
Tailwind
colors: {
  custom: {
    50: '#69579c',
    500: '#201872',
    950: '#000000',
  },
}
SCSS
$custom: #201872;
$custom-light: #69579c;
$custom-dark: #000000;
JSON
{
  "hex": "#201872",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 245.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29381,
    "c": 0.14543,
    "h": 276.5
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

primary
#201872
secondary
#9EA73E
accent
#E840D9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #201872

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

Preview Lab → · Contrast checker → · Palette generator →

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