#20137F#20137F

#20137F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.166 H 275.3°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#20137F
RGBrgb(32, 19, 127)
HSLhsl(247, 74%, 29%)
HSVhsv(247, 85%, 50%)
CMYKcmyk(74.8%, 85%, 0%, 50.2%)
CIE-LABlab(17.01, 40.68, -57.29)
CIE-LCHlch(17.01, 70.27, 305.38°)
OKLaboklab(30.28% 0.0153 -0.1656)
OKLCHoklch(30.28% 0.166 275.3)
XYZxyz(4.6580, 2.3047, 20.2739)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20137F #727F13
analogous
#133C7F #20137F #56137F
triadic
#20137F #7F2013 #137F20
tetradic
#20137F #7F133C #727F13 #137F56
square
#20137F #7F133C #727F13 #137F56
split-complementary
#20137F #7F5613 #3C7F13
monochromatic
#07041B #130B4A #20137F #2D1BB4 #422DE0

Accessibility & contrast

On white

14.37
#20137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#20137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20137F
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20137F#FFFFFF#000000##FFFFFF
##20137F1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #20137f;
/* rgb */ color: rgb(32, 19, 127);
/* oklch */ color: oklch(30.3% 0.166 275.3);
Tailwind
colors: {
  custom: {
    50: '#6d55a5',
    500: '#20137f',
    950: '#000000',
  },
}
SCSS
$custom: #20137f;
$custom-light: #6d55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20137f",
  "rgb": {
    "r": 32,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 247.222,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30275,
    "c": 0.16633,
    "h": 275.3
  },
  "luminance": 0.02305
}

Semantic roles & 50–950 ramp

primary
#20137F
secondary
#A6B439
accent
#F137DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20137F

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

Preview Lab → · Contrast checker → · Palette generator →

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