#20284C#20284C

#20284C is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.9% C 0.067 H 272.2°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#20284C
RGBrgb(32, 40, 76)
HSLhsl(229, 41%, 21%)
HSVhsv(229, 58%, 30%)
CMYKcmyk(57.9%, 47.4%, 0%, 70.2%)
CIE-LABlab(17.21, 8.63, -23.43)
CIE-LCHlch(17.21, 24.97, 290.23°)
OKLaboklab(28.95% 0.0026 -0.0665)
OKLCHoklch(28.95% 0.067 272.2)
XYZxyz(2.6585, 2.3463, 7.1489)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20284C #4C4420
analogous
#203E4C #20284C #2E204C
triadic
#20284C #4C2028 #284C20
tetradic
#20284C #4C203E #4C4420 #204C2E
square
#20284C #4C203E #4C4420 #204C2E
split-complementary
#20284C #4C2E20 #3E4C20
monochromatic
#090B16 #0E1121 #20284C #323F77 #4455A2

Accessibility & contrast

On white

14.29
#20284C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#20284C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20284C
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20284C#FFFFFF#000000##FFFFFF
##20284C1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192C4D
Deuteranopia (green-blind)
#14294B
Tritanopia (blue-blind)
#0C3036
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20284c;
/* rgb */ color: rgb(32, 40, 76);
/* oklch */ color: oklch(28.9% 0.067 272.2);
Tailwind
colors: {
  custom: {
    50: '#5f617e',
    500: '#20284c',
    950: '#000000',
  },
}
SCSS
$custom: #20284c;
$custom-light: #5f617e;
$custom-dark: #000000;
JSON
{
  "hex": "#20284c",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 76
  },
  "hsl": {
    "h": 229.091,
    "s": 40.741,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28946,
    "c": 0.06655,
    "h": 272.2
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#20284C
secondary
#807647
accent
#BB57D1
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#05050A
muted
#79797C

Preview Lab

Preview with #20284C

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

Preview Lab → · Contrast checker → · Palette generator →

#20284C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva