#20186B#20186B

#20186B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.136 H 277.7°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#20186B
RGBrgb(32, 24, 107)
HSLhsl(246, 63%, 26%)
HSVhsv(246, 78%, 42%)
CMYKcmyk(70.1%, 77.6%, 0%, 58%)
CIE-LABlab(15.60, 31.32, -46.72)
CIE-LCHlch(15.60, 56.25, 303.84°)
OKLaboklab(28.6% 0.0182 -0.1349)
OKLCHoklch(28.6% 0.136 277.7)
XYZxyz(3.5753, 2.0216, 14.1089)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20186B #636B18
analogous
#18396B #20186B #49186B
triadic
#20186B #6B2018 #186B20
tetradic
#20186B #6B1839 #636B18 #186B49
square
#20186B #6B1839 #636B18 #186B49
split-complementary
#20186B #6B4918 #396B18
monochromatic
#070619 #110D39 #20186B #2F239D #3E2ECF

Accessibility & contrast

On white

14.95
#20186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#20186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20186B
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20186B#FFFFFF#000000##FFFFFF
##20186B1.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002369
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #20186b;
/* rgb */ color: rgb(32, 24, 107);
/* oklch */ color: oklch(28.6% 0.136 277.7);
Tailwind
colors: {
  custom: {
    50: '#675696',
    500: '#20186b',
    950: '#000000',
  },
}
SCSS
$custom: #20186b;
$custom-light: #675696;
$custom-dark: #000000;
JSON
{
  "hex": "#20186b",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 245.783,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28598,
    "c": 0.13618,
    "h": 277.7
  },
  "luminance": 0.02022
}

Semantic roles & 50–950 ramp

primary
#20186B
secondary
#97A13E
accent
#E641D6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #20186B

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

Preview Lab → · Contrast checker → · Palette generator →

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