#20186E#20186E

#20186E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.140 H 277.2°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#20186E
RGBrgb(32, 24, 110)
HSLhsl(246, 64%, 26%)
HSVhsv(246, 78%, 43%)
CMYKcmyk(70.9%, 78.2%, 0%, 56.9%)
CIE-LABlab(15.93, 32.37, -48.14)
CIE-LCHlch(15.93, 58.01, 303.92°)
OKLaboklab(28.93% 0.0175 -0.1391)
OKLCHoklch(28.93% 0.14 277.2)
XYZxyz(3.7359, 2.0858, 14.9546)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20186E #666E18
analogous
#183B6E #20186E #4B186E
triadic
#20186E #6E2018 #186E20
tetradic
#20186E #6E183B #666E18 #186E4B
square
#20186E #6E183B #666E18 #186E4B
split-complementary
#20186E #6E4B18 #3B6E18
monochromatic
#070519 #110D3C #20186E #2F23A0 #3E2FD2

Accessibility & contrast

On white

14.82
#20186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20186E
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20186E#FFFFFF#000000##FFFFFF
##20186E1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20186e;
/* rgb */ color: rgb(32, 24, 110);
/* oklch */ color: oklch(28.9% 0.140 277.2);
Tailwind
colors: {
  custom: {
    50: '#685699',
    500: '#20186e',
    950: '#000000',
  },
}
SCSS
$custom: #20186e;
$custom-light: #685699;
$custom-dark: #000000;
JSON
{
  "hex": "#20186e",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 245.581,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28931,
    "c": 0.14017,
    "h": 277.2
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#20186E
secondary
#9AA43E
accent
#E741D8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20186E

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

Preview Lab → · Contrast checker → · Palette generator →

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