#20427E#20427E

#20427E is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.8% C 0.109 H 260.8°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#20427E
RGBrgb(32, 66, 126)
HSLhsl(218, 59%, 31%)
HSVhsv(218, 75%, 49%)
CMYKcmyk(74.6%, 47.6%, 0%, 50.6%)
CIE-LABlab(28.67, 9.91, -37.63)
CIE-LCHlch(28.67, 38.91, 284.76°)
OKLaboklab(38.82% -0.0174 -0.1078)
OKLCHoklch(38.82% 0.109 260.8)
XYZxyz(6.3084, 5.7092, 20.5041)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20427E #7E5C20
analogous
#20717E #20427E #2D207E
triadic
#20427E #7E2042 #427E20
tetradic
#20427E #7E2071 #7E5C20 #207E2D
square
#20427E #7E2071 #7E5C20 #207E2D
split-complementary
#20427E #7E2D20 #717E20
monochromatic
#070F1C #14284D #20427E #2C5CAF #4879D0

Accessibility & contrast

On white

9.80
#20427E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#20427E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20427E
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20427E#FFFFFF#000000##FFFFFF
##20427E1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234880
Deuteranopia (green-blind)
#0F407D
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #20427e;
/* rgb */ color: rgb(32, 66, 126);
/* oklch */ color: oklch(38.8% 0.109 260.8);
Tailwind
colors: {
  custom: {
    50: '#6975a4',
    500: '#20427e',
    950: '#000000',
  },
}
SCSS
$custom: #20427e;
$custom-light: #6975a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20427e",
  "rgb": {
    "r": 32,
    "g": 66,
    "b": 126
  },
  "hsl": {
    "h": 218.298,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38824,
    "c": 0.10921,
    "h": 260.8
  },
  "luminance": 0.0571
}

Semantic roles & 50–950 ramp

primary
#20427E
secondary
#B18B49
accent
#AA45E3
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #20427E

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

Preview Lab → · Contrast checker → · Palette generator →

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