#20185E#20185E

#20185E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.2% C 0.118 H 280.2°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#20185E
RGBrgb(32, 24, 94)
HSLhsl(247, 59%, 23%)
HSVhsv(247, 74%, 37%)
CMYKcmyk(66%, 74.5%, 0%, 63.1%)
CIE-LABlab(14.22, 26.73, -40.40)
CIE-LCHlch(14.22, 48.44, 303.49°)
OKLaboklab(27.2% 0.021 -0.1165)
OKLCHoklch(27.2% 0.118 280.2)
XYZxyz(2.9420, 1.7683, 10.7738)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20185E #565E18
analogous
#18335E #20185E #43185E
triadic
#20185E #5E2018 #185E20
tetradic
#20185E #5E1833 #565E18 #185E43
square
#20185E #5E1833 #565E18 #185E43
split-complementary
#20185E #5E4318 #335E18
monochromatic
#080618 #0F0C2D #20185E #31248F #4131C0

Accessibility & contrast

On white

15.51
#20185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#20185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20185E
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20185E#FFFFFF#000000##FFFFFF
##20185E1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #20185e;
/* rgb */ color: rgb(32, 24, 94);
/* oklch */ color: oklch(27.2% 0.118 280.2);
Tailwind
colors: {
  custom: {
    50: '#64568c',
    500: '#20185e',
    950: '#000000',
  },
}
SCSS
$custom: #20185e;
$custom-light: #64568c;
$custom-dark: #000000;
JSON
{
  "hex": "#20185e",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 246.857,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27197,
    "c": 0.11834,
    "h": 280.2
  },
  "luminance": 0.01768
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20185E

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

Preview Lab → · Contrast checker → · Palette generator →

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