#20186F#20186F

#20186F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.141 H 277.0°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#20186F
RGBrgb(32, 24, 111)
HSLhsl(246, 64%, 26%)
HSVhsv(246, 78%, 44%)
CMYKcmyk(71.2%, 78.4%, 0%, 56.5%)
CIE-LABlab(16.04, 32.71, -48.60)
CIE-LCHlch(16.04, 58.59, 303.94°)
OKLaboklab(29.04% 0.0173 -0.1404)
OKLCHoklch(29.04% 0.141 277)
XYZxyz(3.7906, 2.1077, 15.2429)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20186F #676F18
analogous
#183C6F #20186F #4C186F
triadic
#20186F #6F2018 #186F20
tetradic
#20186F #6F183C #676F18 #186F4C
square
#20186F #6F183C #676F18 #186F4C
split-complementary
#20186F #6F4C18 #3C6F18
monochromatic
#070519 #110D3D #20186F #2F23A1 #3E2FD2

Accessibility & contrast

On white

14.77
#20186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#20186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20186F
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20186F#FFFFFF#000000##FFFFFF
##20186F1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #20186f;
/* rgb */ color: rgb(32, 24, 111);
/* oklch */ color: oklch(29.0% 0.141 277.0);
Tailwind
colors: {
  custom: {
    50: '#685699',
    500: '#20186f',
    950: '#000000',
  },
}
SCSS
$custom: #20186f;
$custom-light: #685699;
$custom-dark: #000000;
JSON
{
  "hex": "#20186f",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 245.517,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29043,
    "c": 0.14149,
    "h": 277
  },
  "luminance": 0.02108
}

Semantic roles & 50–950 ramp

primary
#20186F
secondary
#9BA53E
accent
#E740D8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20186F

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

Preview Lab → · Contrast checker → · Palette generator →

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