#202C78#202C78

#202C78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.130 H 270.8°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#202C78
RGBrgb(32, 44, 120)
HSLhsl(232, 58%, 30%)
HSVhsv(232, 73%, 47%)
CMYKcmyk(73.3%, 63.3%, 0%, 52.9%)
CIE-LABlab(21.81, 22.91, -44.93)
CIE-LCHlch(21.81, 50.43, 297.02°)
OKLaboklab(33.5% 0.0017 -0.1296)
OKLCHoklch(33.5% 0.13 270.8)
XYZxyz(4.8854, 3.4640, 18.1768)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202C78 #786C20
analogous
#205878 #202C78 #402078
triadic
#202C78 #78202C #2C7820
tetradic
#202C78 #782058 #786C20 #207840
square
#202C78 #782058 #786C20 #207840
split-complementary
#202C78 #784020 #587820
monochromatic
#060918 #131A48 #202C78 #2D3EA8 #4558CD

Accessibility & contrast

On white

12.40
#202C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#202C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202C78
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202C78#FFFFFF#000000##FFFFFF
##202C781.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387A
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #202c78;
/* rgb */ color: rgb(32, 44, 120);
/* oklch */ color: oklch(33.5% 0.130 270.8);
Tailwind
colors: {
  custom: {
    50: '#6965a0',
    500: '#202c78',
    950: '#000000',
  },
}
SCSS
$custom: #202c78;
$custom-light: #6965a0;
$custom-dark: #000000;
JSON
{
  "hex": "#202c78",
  "rgb": {
    "r": 32,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 231.818,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33497,
    "c": 0.12965,
    "h": 270.8
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#202C78
secondary
#AB9E48
accent
#CC47E1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #202C78

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

Preview Lab → · Contrast checker → · Palette generator →

#202C78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva