#202840#202840

#202840 is a dark, muted blue. Relative luminance 0.022; OKLCH L 28.1% C 0.046 H 269.3°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#202840
RGBrgb(32, 40, 64)
HSLhsl(225, 33%, 19%)
HSVhsv(225, 50%, 25%)
CMYKcmyk(50%, 37.5%, 0%, 74.9%)
CIE-LABlab(16.48, 4.20, -16.35)
CIE-LCHlch(16.48, 16.88, 284.42°)
OKLaboklab(28.14% -0.0006 -0.0458)
OKLCHoklch(28.14% 0.046 269.3)
XYZxyz(2.2796, 2.1947, 5.1530)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202840 #403820
analogous
#203840 #202840 #282040
triadic
#202840 #402028 #284020
tetradic
#202840 #402038 #403820 #204028
square
#202840 #402038 #403820 #204028
split-complementary
#202840 #402820 #384020
monochromatic
#0A0D14 #0C0F17 #202840 #344269 #495B92

Accessibility & contrast

On white

14.59
#202840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #202840
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202840#FFFFFF#000000##FFFFFF
##2028401.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2A41
Deuteranopia (green-blind)
#1C273F
Tritanopia (blue-blind)
#152D31
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #202840;
/* rgb */ color: rgb(32, 40, 64);
/* oklch */ color: oklch(28.1% 0.046 269.3);
Tailwind
colors: {
  custom: {
    50: '#5d6175',
    500: '#202840',
    950: '#000000',
  },
}
SCSS
$custom: #202840;
$custom-light: #5d6175;
$custom-dark: #000000;
JSON
{
  "hex": "#202840",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 64
  },
  "hsl": {
    "h": 225,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28144,
    "c": 0.04585,
    "h": 269.3
  },
  "luminance": 0.02195
}

Semantic roles & 50–950 ramp

primary
#202840
secondary
#746948
accent
#AF5EC9
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040508
muted
#79797B

Preview Lab

Preview with #202840

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

Preview Lab → · Contrast checker → · Palette generator →

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