#202978#202978

#202978 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.134 H 271.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#202978
RGBrgb(32, 41, 120)
HSLhsl(234, 58%, 30%)
HSVhsv(234, 73%, 47%)
CMYKcmyk(73.3%, 65.8%, 0%, 52.9%)
CIE-LABlab(21.01, 24.99, -46.24)
CIE-LCHlch(21.01, 52.56, 298.39°)
OKLaboklab(32.91% 0.0041 -0.1335)
OKLCHoklch(32.91% 0.134 271.8)
XYZxyz(4.7776, 3.2485, 18.1409)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202978 #786F20
analogous
#205578 #202978 #432078
triadic
#202978 #782029 #297820
tetradic
#202978 #782055 #786F20 #207843
square
#202978 #782055 #786F20 #207843
split-complementary
#202978 #784320 #557820
monochromatic
#060818 #131848 #202978 #2D3AA8 #4553CD

Accessibility & contrast

On white

12.73
#202978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#202978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202978
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202978#FFFFFF#000000##FFFFFF
##2029781.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #202978;
/* rgb */ color: rgb(32, 41, 120);
/* oklch */ color: oklch(32.9% 0.134 271.8);
Tailwind
colors: {
  custom: {
    50: '#6962a0',
    500: '#202978',
    950: '#000000',
  },
}
SCSS
$custom: #202978;
$custom-light: #6962a0;
$custom-dark: #000000;
JSON
{
  "hex": "#202978",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 233.864,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32906,
    "c": 0.13357,
    "h": 271.8
  },
  "luminance": 0.03249
}

Semantic roles & 50–950 ramp

primary
#202978
secondary
#ABA148
accent
#D147E1
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #202978

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

Preview Lab → · Contrast checker → · Palette generator →

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