#20278A#20278A

#20278A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.161 H 271.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#20278A
RGBrgb(32, 39, 138)
HSLhsl(236, 62%, 33%)
HSVhsv(236, 77%, 54%)
CMYKcmyk(76.8%, 71.7%, 0%, 45.9%)
CIE-LABlab(22.28, 33.07, -55.52)
CIE-LCHlch(22.28, 64.63, 300.78°)
OKLaboklab(34.36% 0.0037 -0.1607)
OKLCHoklch(34.36% 0.161 271.3)
XYZxyz(5.9071, 3.5925, 24.4219)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20278A #8A8320
analogous
#205C8A #20278A #4E208A
triadic
#20278A #8A2027 #278A20
tetradic
#20278A #8A205C #8A8320 #208A4E
square
#20278A #8A205C #8A8320 #208A4E
split-complementary
#20278A #8A4E20 #5C8A20
monochromatic
#090B27 #141958 #20278A #2C35BC #4E57D6

Accessibility & contrast

On white

12.22
#20278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#20278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20278A
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20278A#FFFFFF#000000##FFFFFF
##20278A1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #20278a;
/* rgb */ color: rgb(32, 39, 138);
/* oklch */ color: oklch(34.4% 0.161 271.3);
Tailwind
colors: {
  custom: {
    50: '#6e62ad',
    500: '#20278a',
    950: '#000000',
  },
}
SCSS
$custom: #20278a;
$custom-light: #6e62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20278a",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 236.038,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34361,
    "c": 0.16072,
    "h": 271.3
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#20278A
secondary
#B9B24D
accent
#DB42E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #20278A

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

Preview Lab → · Contrast checker → · Palette generator →

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