#20177F#20177F

#20177F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.163 H 274.8°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#20177F
RGBrgb(32, 23, 127)
HSLhsl(245, 69%, 29%)
HSVhsv(245, 82%, 50%)
CMYKcmyk(74.8%, 81.9%, 0%, 50.2%)
CIE-LABlab(17.70, 38.68, -56.15)
CIE-LCHlch(17.70, 68.18, 304.56°)
OKLaboklab(30.75% 0.0138 -0.1624)
OKLCHoklch(30.75% 0.163 274.8)
XYZxyz(4.7316, 2.4517, 20.2984)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20177F #767F17
analogous
#17427F #20177F #54177F
triadic
#20177F #7F2017 #177F20
tetradic
#20177F #7F1742 #767F17 #177F54
square
#20177F #7F1742 #767F17 #177F54
split-complementary
#20177F #7F5417 #427F17
monochromatic
#07051A #130E4B #20177F #2D20B3 #4436DB

Accessibility & contrast

On white

14.09
#20177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#20177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20177F
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20177F#FFFFFF#000000##FFFFFF
##20177F1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20177f;
/* rgb */ color: rgb(32, 23, 127);
/* oklch */ color: oklch(30.8% 0.163 274.8);
Tailwind
colors: {
  custom: {
    50: '#6d57a5',
    500: '#20177f',
    950: '#000000',
  },
}
SCSS
$custom: #20177f;
$custom-light: #6d57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20177f",
  "rgb": {
    "r": 32,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 245.192,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30752,
    "c": 0.16296,
    "h": 274.8
  },
  "luminance": 0.02452
}

Semantic roles & 50–950 ramp

primary
#20177F
secondary
#A9B43E
accent
#EC3CDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20177F

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

Preview Lab → · Contrast checker → · Palette generator →

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