#20186C#20186C

#20186C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.138 H 277.5°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#20186C
RGBrgb(32, 24, 108)
HSLhsl(246, 64%, 26%)
HSVhsv(246, 78%, 42%)
CMYKcmyk(70.4%, 77.8%, 0%, 57.6%)
CIE-LABlab(15.71, 31.67, -47.20)
CIE-LCHlch(15.71, 56.84, 303.87°)
OKLaboklab(28.71% 0.018 -0.1363)
OKLCHoklch(28.71% 0.138 277.5)
XYZxyz(3.6282, 2.0427, 14.3875)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20186C #646C18
analogous
#183A6C #20186C #4A186C
triadic
#20186C #6C2018 #186C20
tetradic
#20186C #6C183A #646C18 #186C4A
square
#20186C #6C183A #646C18 #186C4A
split-complementary
#20186C #6C4A18 #3A6C18
monochromatic
#070619 #110D3A #20186C #2F239E #3E2ED0

Accessibility & contrast

On white

14.91
#20186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#20186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20186C
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20186C#FFFFFF#000000##FFFFFF
##20186C1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #20186c;
/* rgb */ color: rgb(32, 24, 108);
/* oklch */ color: oklch(28.7% 0.138 277.5);
Tailwind
colors: {
  custom: {
    50: '#685697',
    500: '#20186c',
    950: '#000000',
  },
}
SCSS
$custom: #20186c;
$custom-light: #685697;
$custom-dark: #000000;
JSON
{
  "hex": "#20186c",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 245.714,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28708,
    "c": 0.13751,
    "h": 277.5
  },
  "luminance": 0.02043
}

Semantic roles & 50–950 ramp

primary
#20186C
secondary
#98A23E
accent
#E741D7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20186C

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

Preview Lab → · Contrast checker → · Palette generator →

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