#20186D#20186D

#20186D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.139 H 277.4°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#20186D
RGBrgb(32, 24, 109)
HSLhsl(246, 64%, 26%)
HSVhsv(246, 78%, 43%)
CMYKcmyk(70.6%, 78%, 0%, 57.3%)
CIE-LABlab(15.82, 32.02, -47.67)
CIE-LCHlch(15.82, 57.42, 303.89°)
OKLaboklab(28.82% 0.0178 -0.1377)
OKLCHoklch(28.82% 0.139 277.4)
XYZxyz(3.6817, 2.0642, 14.6694)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20186D #656D18
analogous
#183A6D #20186D #4A186D
triadic
#20186D #6D2018 #186D20
tetradic
#20186D #6D183A #656D18 #186D4A
square
#20186D #6D183A #656D18 #186D4A
split-complementary
#20186D #6D4A18 #3A6D18
monochromatic
#070619 #110D3B #20186D #2F239F #3E2ED1

Accessibility & contrast

On white

14.86
#20186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20186D
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20186D#FFFFFF#000000##FFFFFF
##20186D1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #20186d;
/* rgb */ color: rgb(32, 24, 109);
/* oklch */ color: oklch(28.8% 0.139 277.4);
Tailwind
colors: {
  custom: {
    50: '#685698',
    500: '#20186d',
    950: '#000000',
  },
}
SCSS
$custom: #20186d;
$custom-light: #685698;
$custom-dark: #000000;
JSON
{
  "hex": "#20186d",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 245.647,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.2882,
    "c": 0.13885,
    "h": 277.4
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#20186D
secondary
#99A33E
accent
#E741D7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20186D

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

Preview Lab → · Contrast checker → · Palette generator →

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