#202240#202240

#202240 is a dark, muted blue. Relative luminance 0.018; OKLCH L 26.6% C 0.056 H 279.0°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#202240
RGBrgb(32, 34, 64)
HSLhsl(236, 33%, 19%)
HSVhsv(236, 50%, 25%)
CMYKcmyk(50%, 46.9%, 0%, 74.9%)
CIE-LABlab(14.52, 8.59, -19.43)
CIE-LCHlch(14.52, 21.25, 293.85°)
OKLaboklab(26.64% 0.0087 -0.0548)
OKLCHoklch(26.64% 0.056 279)
XYZxyz(2.0928, 1.8212, 5.0907)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202240 #403E20
analogous
#203240 #202240 #2E2040
triadic
#202240 #402022 #224020
tetradic
#202240 #402032 #403E20 #20402E
square
#202240 #402032 #403E20 #20402E
split-complementary
#202240 #402E20 #324020
monochromatic
#0A0B14 #0C0C17 #202240 #343869 #494D92

Accessibility & contrast

On white

15.39
#202240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #202240
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202240#FFFFFF#000000##FFFFFF
##2022401.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172641
Deuteranopia (green-blind)
#15243F
Tritanopia (blue-blind)
#15282D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #202240;
/* rgb */ color: rgb(32, 34, 64);
/* oklch */ color: oklch(26.6% 0.056 279.0);
Tailwind
colors: {
  custom: {
    50: '#5d5c75',
    500: '#202240',
    950: '#000000',
  },
}
SCSS
$custom: #202240;
$custom-light: #5d5c75;
$custom-dark: #000000;
JSON
{
  "hex": "#202240",
  "rgb": {
    "r": 32,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 236.25,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26637,
    "c": 0.05554,
    "h": 279
  },
  "luminance": 0.01821
}

Semantic roles & 50–950 ramp

primary
#202240
secondary
#747148
accent
#C35EC9
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040408
muted
#79797B

Preview Lab

Preview with #202240

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

Preview Lab → · Contrast checker → · Palette generator →

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