#20278B#20278B

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

Color values

HEX#20278B
RGBrgb(32, 39, 139)
HSLhsl(236, 63%, 34%)
HSVhsv(236, 77%, 55%)
CMYKcmyk(77%, 71.9%, 0%, 45.5%)
CIE-LABlab(22.38, 33.44, -55.98)
CIE-LCHlch(22.38, 65.20, 300.85°)
OKLaboklab(34.47% 0.0036 -0.162)
OKLCHoklch(34.47% 0.162 271.3)
XYZxyz(5.9798, 3.6216, 24.8050)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20278B #8B8420
analogous
#205C8B #20278B #4E208B
triadic
#20278B #8B2027 #278B20
tetradic
#20278B #8B205C #8B8420 #208B4E
square
#20278B #8B205C #8B8420 #208B4E
split-complementary
#20278B #8B4E20 #5C8B20
monochromatic
#090B28 #151959 #20278B #2B35BD #4F58D6

Accessibility & contrast

On white

12.18
#20278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20278B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20278B#FFFFFF#000000##FFFFFF
##20278B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #20278b;
/* rgb */ color: rgb(32, 39, 139);
/* oklch */ color: oklch(34.5% 0.162 271.3);
Tailwind
colors: {
  custom: {
    50: '#6e62ae',
    500: '#20278b',
    950: '#000000',
  },
}
SCSS
$custom: #20278b;
$custom-light: #6e62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20278b",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 236.075,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34467,
    "c": 0.16205,
    "h": 271.3
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#20278B
secondary
#BAB24D
accent
#DB42E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #20278B

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

Preview Lab → · Contrast checker → · Palette generator →

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