#202151#202151

#202151 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.7% C 0.086 H 278.3°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#202151
RGBrgb(32, 33, 81)
HSLhsl(239, 43%, 22%)
HSVhsv(239, 60%, 32%)
CMYKcmyk(60.5%, 59.3%, 0%, 68.2%)
CIE-LABlab(15.43, 15.66, -29.68)
CIE-LCHlch(15.43, 33.56, 297.81°)
OKLaboklab(27.72% 0.0124 -0.0849)
OKLCHoklch(27.72% 0.086 278.3)
XYZxyz(2.6243, 1.9887, 8.0286)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202151 #515020
analogous
#203951 #202151 #382051
triadic
#202151 #512021 #215120
tetradic
#202151 #512039 #515020 #205138
square
#202151 #512039 #515020 #205138
split-complementary
#202151 #513820 #395120
monochromatic
#090916 #0F0F25 #202151 #31337D #4345A9

Accessibility & contrast

On white

15.02
#202151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#202151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202151
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202151#FFFFFF#000000##FFFFFF
##2021511.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042953
Deuteranopia (green-blind)
#002550
Tritanopia (blue-blind)
#072C35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #202151;
/* rgb */ color: rgb(32, 33, 81);
/* oklch */ color: oklch(27.7% 0.086 278.3);
Tailwind
colors: {
  custom: {
    50: '#615c82',
    500: '#202151',
    950: '#000000',
  },
}
SCSS
$custom: #202151;
$custom-light: #615c82;
$custom-dark: #000000;
JSON
{
  "hex": "#202151",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 81
  },
  "hsl": {
    "h": 238.776,
    "s": 43.363,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27715,
    "c": 0.08584,
    "h": 278.3
  },
  "luminance": 0.01989
}

Semantic roles & 50–950 ramp

primary
#202151
secondary
#858447
accent
#D155D3
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040A
muted
#79797C

Preview Lab

Preview with #202151

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

Preview Lab → · Contrast checker → · Palette generator →

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