#20186A#20186A

#20186A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.135 H 277.9°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#20186A
RGBrgb(32, 24, 106)
HSLhsl(246, 63%, 25%)
HSVhsv(246, 77%, 42%)
CMYKcmyk(69.8%, 77.4%, 0%, 58.4%)
CIE-LABlab(15.49, 30.97, -46.25)
CIE-LCHlch(15.49, 55.66, 303.81°)
OKLaboklab(28.49% 0.0185 -0.1336)
OKLCHoklch(28.49% 0.135 277.9)
XYZxyz(3.5230, 2.0007, 13.8334)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20186A #626A18
analogous
#18396A #20186A #49186A
triadic
#20186A #6A2018 #186A20
tetradic
#20186A #6A1839 #626A18 #186A49
square
#20186A #6A1839 #626A18 #186A49
split-complementary
#20186A #6A4918 #396A18
monochromatic
#080619 #110D38 #20186A #2F239C #3E2FCE

Accessibility & contrast

On white

15.00
#20186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20186A
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20186A#FFFFFF#000000##FFFFFF
##20186A1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20186a;
/* rgb */ color: rgb(32, 24, 106);
/* oklch */ color: oklch(28.5% 0.135 277.9);
Tailwind
colors: {
  custom: {
    50: '#675696',
    500: '#20186a',
    950: '#000000',
  },
}
SCSS
$custom: #20186a;
$custom-light: #675696;
$custom-dark: #000000;
JSON
{
  "hex": "#20186a",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 245.854,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28487,
    "c": 0.13484,
    "h": 277.9
  },
  "luminance": 0.02001
}

Semantic roles & 50–950 ramp

primary
#20186A
secondary
#96A03E
accent
#E642D6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #20186A

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

Preview Lab → · Contrast checker → · Palette generator →

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