#20368E#20368E

#20368E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.5% C 0.148 H 267.7°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#20368E
RGBrgb(32, 54, 142)
HSLhsl(228, 63%, 34%)
HSVhsv(228, 77%, 56%)
CMYKcmyk(77.5%, 62%, 0%, 44.3%)
CIE-LABlab(26.44, 24.59, -51.18)
CIE-LCHlch(26.44, 56.78, 295.66°)
OKLaboklab(37.53% -0.006 -0.1479)
OKLCHoklch(37.53% 0.148 267.7)
XYZxyz(6.7956, 4.8977, 26.1731)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20368E #8E7820
analogous
#206D8E #20368E #41208E
triadic
#20368E #8E2036 #368E20
tetradic
#20368E #8E206D #8E7820 #208E41
square
#20368E #8E206D #8E7820 #208E41
split-complementary
#20368E #8E4120 #6D8E20
monochromatic
#09102A #15235C #20368E #2B49C0 #516CD8

Accessibility & contrast

On white

10.61
#20368E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#20368E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20368E
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20368E#FFFFFF#000000##FFFFFF
##20368E1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #20368e;
/* rgb */ color: rgb(32, 54, 142);
/* oklch */ color: oklch(37.5% 0.148 267.7);
Tailwind
colors: {
  custom: {
    50: '#6d6cb0',
    500: '#20368e',
    950: '#000000',
  },
}
SCSS
$custom: #20368e;
$custom-light: #6d6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#20368e",
  "rgb": {
    "r": 32,
    "g": 54,
    "b": 142
  },
  "hsl": {
    "h": 228,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37528,
    "c": 0.14799,
    "h": 267.7
  },
  "luminance": 0.04898
}

Semantic roles & 50–950 ramp

primary
#20368E
secondary
#BBA54F
accent
#C542E6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #20368E

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

Preview Lab → · Contrast checker → · Palette generator →

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