#20267D#20267D

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

Color values

HEX#20267D
RGBrgb(32, 38, 125)
HSLhsl(236, 59%, 31%)
HSVhsv(236, 74%, 49%)
CMYKcmyk(74.4%, 69.6%, 0%, 51%)
CIE-LABlab(20.73, 28.91, -49.89)
CIE-LCHlch(20.73, 57.66, 300.09°)
OKLaboklab(32.84% 0.0059 -0.1442)
OKLCHoklch(32.84% 0.144 272.3)
XYZxyz(4.9892, 3.1735, 19.7477)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20267D #7D7720
analogous
#20547D #20267D #48207D
triadic
#20267D #7D2026 #267D20
tetradic
#20267D #7D2054 #7D7720 #207D48
square
#20267D #7D2054 #7D7720 #207D48
split-complementary
#20267D #7D4820 #547D20
monochromatic
#07081C #14174C #20267D #2C35AE #4750D0

Accessibility & contrast

On white

12.85
#20267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#20267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20267D
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20267D#FFFFFF#000000##FFFFFF
##20267D1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #20267d;
/* rgb */ color: rgb(32, 38, 125);
/* oklch */ color: oklch(32.8% 0.144 272.3);
Tailwind
colors: {
  custom: {
    50: '#6b60a4',
    500: '#20267d',
    950: '#000000',
  },
}
SCSS
$custom: #20267d;
$custom-light: #6b60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20267d",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 236.129,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32843,
    "c": 0.14435,
    "h": 272.3
  },
  "luminance": 0.03174
}

Semantic roles & 50–950 ramp

primary
#20267D
secondary
#B0A949
accent
#D845E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #20267D

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

Preview Lab → · Contrast checker → · Palette generator →

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