#20267E#20267E

#20267E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.146 H 272.3°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#20267E
RGBrgb(32, 38, 126)
HSLhsl(236, 59%, 31%)
HSVhsv(236, 75%, 49%)
CMYKcmyk(74.6%, 69.8%, 0%, 50.6%)
CIE-LABlab(20.82, 29.28, -50.36)
CIE-LCHlch(20.82, 58.26, 300.18°)
OKLaboklab(32.95% 0.0058 -0.1456)
OKLCHoklch(32.95% 0.146 272.3)
XYZxyz(5.0534, 3.1992, 20.0858)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20267E #7E7820
analogous
#20557E #20267E #49207E
triadic
#20267E #7E2026 #267E20
tetradic
#20267E #7E2055 #7E7820 #207E49
square
#20267E #7E2055 #7E7820 #207E49
split-complementary
#20267E #7E4920 #557E20
monochromatic
#07091C #14174D #20267E #2C35AF #4851D0

Accessibility & contrast

On white

12.80
#20267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#20267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20267E
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20267E#FFFFFF#000000##FFFFFF
##20267E1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #20267e;
/* rgb */ color: rgb(32, 38, 126);
/* oklch */ color: oklch(32.9% 0.146 272.3);
Tailwind
colors: {
  custom: {
    50: '#6b60a4',
    500: '#20267e',
    950: '#000000',
  },
}
SCSS
$custom: #20267e;
$custom-light: #6b60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20267e",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 236.17,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32945,
    "c": 0.14572,
    "h": 272.3
  },
  "luminance": 0.032
}

Semantic roles & 50–950 ramp

primary
#20267E
secondary
#B1AA49
accent
#D945E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #20267E

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

Preview Lab → · Contrast checker → · Palette generator →

#20267E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva