#20427F#20427F

#20427F is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.111 H 261.0°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#20427F
RGBrgb(32, 66, 127)
HSLhsl(219, 60%, 31%)
HSVhsv(219, 75%, 50%)
CMYKcmyk(74.8%, 48%, 0%, 50.2%)
CIE-LABlab(28.73, 10.31, -38.14)
CIE-LCHlch(28.73, 39.51, 285.13°)
OKLaboklab(38.9% -0.0173 -0.1093)
OKLCHoklch(38.9% 0.111 261)
XYZxyz(6.3733, 5.7351, 20.8457)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20427F #7F5D20
analogous
#20717F #20427F #2D207F
triadic
#20427F #7F2042 #427F20
tetradic
#20427F #7F2071 #7F5D20 #207F2D
square
#20427F #7F2071 #7F5D20 #207F2D
split-complementary
#20427F #7F2D20 #717F20
monochromatic
#070F1D #14294E #20427F #2C5BB0 #4879D1

Accessibility & contrast

On white

9.78
#20427F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#20427F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20427F
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20427F#FFFFFF#000000##FFFFFF
##20427F1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20427f;
/* rgb */ color: rgb(32, 66, 127);
/* oklch */ color: oklch(38.9% 0.111 261.0);
Tailwind
colors: {
  custom: {
    50: '#6975a4',
    500: '#20427f',
    950: '#000000',
  },
}
SCSS
$custom: #20427f;
$custom-light: #6975a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20427f",
  "rgb": {
    "r": 32,
    "g": 66,
    "b": 127
  },
  "hsl": {
    "h": 218.526,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38897,
    "c": 0.11068,
    "h": 261
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#20427F
secondary
#B28C49
accent
#AA45E3
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #20427F

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

Preview Lab → · Contrast checker → · Palette generator →

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