#20278F#20278F

#20278F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.167 H 271.0°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#20278F
RGBrgb(32, 39, 143)
HSLhsl(236, 63%, 34%)
HSVhsv(236, 78%, 56%)
CMYKcmyk(77.6%, 72.7%, 0%, 43.9%)
CIE-LABlab(22.79, 34.89, -57.78)
CIE-LCHlch(22.79, 67.50, 301.12°)
OKLaboklab(34.89% 0.0031 -0.1673)
OKLCHoklch(34.89% 0.167 271)
XYZxyz(6.2774, 3.7406, 26.3724)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20278F #8F8820
analogous
#205F8F #20278F #51208F
triadic
#20278F #8F2027 #278F20
tetradic
#20278F #8F205F #8F8820 #208F51
square
#20278F #8F205F #8F8820 #208F51
split-complementary
#20278F #8F5120 #5F8F20
monochromatic
#0A0C2B #15195D #20278F #2B35C1 #515AD8

Accessibility & contrast

On white

12.01
#20278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#20278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20278F
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20278F#FFFFFF#000000##FFFFFF
##20278F1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #20278f;
/* rgb */ color: rgb(32, 39, 143);
/* oklch */ color: oklch(34.9% 0.167 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f62b1',
    500: '#20278f',
    950: '#000000',
  },
}
SCSS
$custom: #20278f;
$custom-light: #6f62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#20278f",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 236.216,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34891,
    "c": 0.1673,
    "h": 271
  },
  "luminance": 0.03741
}

Semantic roles & 50–950 ramp

primary
#20278F
secondary
#BBB54F
accent
#DC41E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #20278F

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

Preview Lab → · Contrast checker → · Palette generator →

#20278F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva