#202142#202142

#202142 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.5% C 0.061 H 280.1°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#202142
RGBrgb(32, 33, 66)
HSLhsl(238, 35%, 19%)
HSVhsv(238, 52%, 26%)
CMYKcmyk(51.5%, 50%, 0%, 74.1%)
CIE-LABlab(14.33, 10.06, -21.12)
CIE-LCHlch(14.33, 23.39, 295.46°)
OKLaboklab(26.54% 0.0107 -0.0598)
OKLCHoklch(26.54% 0.061 280.1)
XYZxyz(2.1226, 1.7880, 5.3865)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202142 #424120
analogous
#203242 #202142 #302042
triadic
#202142 #422021 #214220
tetradic
#202142 #422032 #424120 #204230
square
#202142 #422032 #424120 #204230
split-complementary
#202142 #423020 #324220
monochromatic
#0A0A15 #0C0C19 #202142 #34366B #484A94

Accessibility & contrast

On white

15.47
#202142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#202142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202142
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202142#FFFFFF#000000##FFFFFF
##2021421.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142643
Deuteranopia (green-blind)
#122341
Tritanopia (blue-blind)
#14282E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #202142;
/* rgb */ color: rgb(32, 33, 66);
/* oklch */ color: oklch(26.5% 0.061 280.1);
Tailwind
colors: {
  custom: {
    50: '#5e5c76',
    500: '#202142',
    950: '#000000',
  },
}
SCSS
$custom: #202142;
$custom-light: #5e5c76;
$custom-dark: #000000;
JSON
{
  "hex": "#202142",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 66
  },
  "hsl": {
    "h": 238.235,
    "s": 34.694,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26538,
    "c": 0.06074,
    "h": 280.1
  },
  "luminance": 0.01788
}

Semantic roles & 50–950 ramp

primary
#202142
secondary
#767548
accent
#C85DCB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040408
muted
#79797B

Preview Lab

Preview with #202142

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

Preview Lab → · Contrast checker → · Palette generator →

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