#20278C#20278C

#20278C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.163 H 271.2°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#20278C
RGBrgb(32, 39, 140)
HSLhsl(236, 63%, 34%)
HSVhsv(236, 77%, 55%)
CMYKcmyk(77.1%, 72.1%, 0%, 45.1%)
CIE-LABlab(22.48, 33.80, -56.43)
CIE-LCHlch(22.48, 65.78, 300.92°)
OKLaboklab(34.57% 0.0035 -0.1633)
OKLCHoklch(34.57% 0.163 271.2)
XYZxyz(6.0532, 3.6509, 25.1915)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20278C #8C8520
analogous
#205D8C #20278C #4F208C
triadic
#20278C #8C2027 #278C20
tetradic
#20278C #8C205D #8C8520 #208C4F
square
#20278C #8C205D #8C8520 #208C4F
split-complementary
#20278C #8C4F20 #5D8C20
monochromatic
#090B28 #15195A #20278C #2B35BE #5058D7

Accessibility & contrast

On white

12.14
#20278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#20278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20278C
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20278C#FFFFFF#000000##FFFFFF
##20278C1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #20278c;
/* rgb */ color: rgb(32, 39, 140);
/* oklch */ color: oklch(34.6% 0.163 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e62af',
    500: '#20278c',
    950: '#000000',
  },
}
SCSS
$custom: #20278c;
$custom-light: #6e62af;
$custom-dark: #000000;
JSON
{
  "hex": "#20278c",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 236.111,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34572,
    "c": 0.16337,
    "h": 271.2
  },
  "luminance": 0.03652
}

Semantic roles & 50–950 ramp

primary
#20278C
secondary
#BAB34E
accent
#DB42E6
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #20278C

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

Preview Lab → · Contrast checker → · Palette generator →

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