#20177C#20177C

#20177C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.159 H 275.2°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#20177C
RGBrgb(32, 23, 124)
HSLhsl(245, 69%, 29%)
HSVhsv(245, 81%, 49%)
CMYKcmyk(74.2%, 81.5%, 0%, 51.4%)
CIE-LABlab(17.34, 37.69, -54.83)
CIE-LCHlch(17.34, 66.53, 304.50°)
OKLaboklab(30.4% 0.0145 -0.1585)
OKLCHoklch(30.4% 0.159 275.2)
XYZxyz(4.5390, 2.3747, 19.2840)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20177C #737C17
analogous
#17417C #20177C #53177C
triadic
#20177C #7C2017 #177C20
tetradic
#20177C #7C1741 #737C17 #177C53
square
#20177C #7C1741 #737C17 #177C53
split-complementary
#20177C #7C5317 #417C17
monochromatic
#07051A #130D48 #20177C #2D21B0 #4334D9

Accessibility & contrast

On white

14.24
#20177C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#20177C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20177C
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20177C#FFFFFF#000000##FFFFFF
##20177C1.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20177c;
/* rgb */ color: rgb(32, 23, 124);
/* oklch */ color: oklch(30.4% 0.159 275.2);
Tailwind
colors: {
  custom: {
    50: '#6c57a3',
    500: '#20177c',
    950: '#000000',
  },
}
SCSS
$custom: #20177c;
$custom-light: #6c57a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20177c",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 124
  },
  "hsl": {
    "h": 245.347,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30399,
    "c": 0.15921,
    "h": 275.2
  },
  "luminance": 0.02375
}

Semantic roles & 50–950 ramp

primary
#20177C
secondary
#A7B13E
accent
#EC3CDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20177C

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

Preview Lab → · Contrast checker → · Palette generator →

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