#20427D#20427D

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

Color values

HEX#20427D
RGBrgb(32, 66, 125)
HSLhsl(218, 59%, 31%)
HSVhsv(218, 74%, 49%)
CMYKcmyk(74.4%, 47.2%, 0%, 51%)
CIE-LABlab(28.60, 9.51, -37.11)
CIE-LCHlch(28.60, 38.31, 284.38°)
OKLaboklab(38.75% -0.0176 -0.1063)
OKLCHoklch(38.75% 0.108 260.6)
XYZxyz(6.2442, 5.6835, 20.1660)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20427D #7D5B20
analogous
#20707D #20427D #2D207D
triadic
#20427D #7D2042 #427D20
tetradic
#20427D #7D2070 #7D5B20 #207D2D
square
#20427D #7D2070 #7D5B20 #207D2D
split-complementary
#20427D #7D2D20 #707D20
monochromatic
#070F1C #14284C #20427D #2C5CAE #4779D0

Accessibility & contrast

On white

9.83
#20427D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20427D
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20427D#FFFFFF#000000##FFFFFF
##20427D1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487F
Deuteranopia (green-blind)
#113F7C
Tritanopia (blue-blind)
#005059
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #20427d;
/* rgb */ color: rgb(32, 66, 125);
/* oklch */ color: oklch(38.8% 0.108 260.6);
Tailwind
colors: {
  custom: {
    50: '#6875a3',
    500: '#20427d',
    950: '#000000',
  },
}
SCSS
$custom: #20427d;
$custom-light: #6875a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20427d",
  "rgb": {
    "r": 32,
    "g": 66,
    "b": 125
  },
  "hsl": {
    "h": 218.065,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3875,
    "c": 0.10773,
    "h": 260.6
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#20427D
secondary
#B08A49
accent
#A945E2
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #20427D

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

Preview Lab → · Contrast checker → · Palette generator →

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