#202040#202040

#202040 is a dark, muted blue. Relative luminance 0.017; OKLCH L 26.2% C 0.059 H 281.5°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#202040
RGBrgb(32, 32, 64)
HSLhsl(240, 33%, 19%)
HSVhsv(240, 50%, 25%)
CMYKcmyk(50%, 50%, 0%, 74.9%)
CIE-LABlab(13.89, 10.07, -20.43)
CIE-LCHlch(13.89, 22.78, 296.24°)
OKLaboklab(26.16% 0.0118 -0.0578)
OKLCHoklch(26.16% 0.059 281.5)
XYZxyz(2.0373, 1.7102, 5.0722)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202040 #404020
analogous
#203040 #202040 #302040
triadic
#202040 #402020 #204020
tetradic
#202040 #402030 #404020 #204030
square
#202040 #402030 #404020 #204030
split-complementary
#202040 #403020 #304020
monochromatic
#0A0A14 #0C0C17 #202040 #343469 #494992

Accessibility & contrast

On white

15.65
#202040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#202040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202040
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202040#FFFFFF#000000##FFFFFF
##2020401.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142541
Deuteranopia (green-blind)
#12223F
Tritanopia (blue-blind)
#16272C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #202040;
/* rgb */ color: rgb(32, 32, 64);
/* oklch */ color: oklch(26.2% 0.059 281.5);
Tailwind
colors: {
  custom: {
    50: '#5e5b75',
    500: '#202040',
    950: '#000000',
  },
}
SCSS
$custom: #202040;
$custom-light: #5e5b75;
$custom-dark: #000000;
JSON
{
  "hex": "#202040",
  "rgb": {
    "r": 32,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 240,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26155,
    "c": 0.05899,
    "h": 281.5
  },
  "luminance": 0.0171
}

Semantic roles & 50–950 ramp

primary
#202040
secondary
#747448
accent
#C95EC9
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040408
muted
#79797B

Preview Lab

Preview with #202040

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

Preview Lab → · Contrast checker → · Palette generator →

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