#202878#202878

#202878 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.135 H 272.1°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#202878
RGBrgb(32, 40, 120)
HSLhsl(235, 58%, 30%)
HSVhsv(235, 73%, 47%)
CMYKcmyk(73.3%, 66.7%, 0%, 52.9%)
CIE-LABlab(20.75, 25.67, -46.66)
CIE-LCHlch(20.75, 53.26, 298.82°)
OKLaboklab(32.71% 0.0049 -0.1348)
OKLCHoklch(32.71% 0.135 272.1)
XYZxyz(4.7435, 3.1803, 18.1295)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202878 #787020
analogous
#205478 #202878 #442078
triadic
#202878 #782028 #287820
tetradic
#202878 #782054 #787020 #207844
square
#202878 #782054 #787020 #207844
split-complementary
#202878 #784420 #547820
monochromatic
#060818 #131848 #202878 #2D38A8 #4551CD

Accessibility & contrast

On white

12.83
#202878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#202878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202878
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202878#FFFFFF#000000##FFFFFF
##2028781.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #202878;
/* rgb */ color: rgb(32, 40, 120);
/* oklch */ color: oklch(32.7% 0.135 272.1);
Tailwind
colors: {
  custom: {
    50: '#6962a0',
    500: '#202878',
    950: '#000000',
  },
}
SCSS
$custom: #202878;
$custom-light: #6962a0;
$custom-dark: #000000;
JSON
{
  "hex": "#202878",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 234.545,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32715,
    "c": 0.13486,
    "h": 272.1
  },
  "luminance": 0.03181
}

Semantic roles & 50–950 ramp

primary
#202878
secondary
#ABA248
accent
#D347E1
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #202878

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

Preview Lab → · Contrast checker → · Palette generator →

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