#20185F#20185F

#20185F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.3% C 0.120 H 280.0°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#20185F
RGBrgb(32, 24, 95)
HSLhsl(247, 60%, 23%)
HSVhsv(247, 75%, 37%)
CMYKcmyk(66.3%, 74.7%, 0%, 62.7%)
CIE-LABlab(14.32, 27.09, -40.90)
CIE-LCHlch(14.32, 49.06, 303.51°)
OKLaboklab(27.3% 0.0208 -0.1179)
OKLCHoklch(27.3% 0.12 280)
XYZxyz(2.9872, 1.7863, 11.0116)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20185F #575F18
analogous
#18335F #20185F #43185F
triadic
#20185F #5F2018 #185F20
tetradic
#20185F #5F1833 #575F18 #185F43
square
#20185F #5F1833 #575F18 #185F43
split-complementary
#20185F #5F4318 #335F18
monochromatic
#080618 #100C2E #20185F #302490 #4131C1

Accessibility & contrast

On white

15.47
#20185F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#20185F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20185F
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20185F#FFFFFF#000000##FFFFFF
##20185F1.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #20185f;
/* rgb */ color: rgb(32, 24, 95);
/* oklch */ color: oklch(27.3% 0.120 280.0);
Tailwind
colors: {
  custom: {
    50: '#65568d',
    500: '#20185f',
    950: '#000000',
  },
}
SCSS
$custom: #20185f;
$custom-light: #65568d;
$custom-dark: #000000;
JSON
{
  "hex": "#20185f",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 95
  },
  "hsl": {
    "h": 246.761,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27302,
    "c": 0.11975,
    "h": 280
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#20185F
secondary
#8B953D
accent
#E345D1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20185F

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

Preview Lab → · Contrast checker → · Palette generator →

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