#20138D#20138D

#20138D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.183 H 273.5°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#20138D
RGBrgb(32, 19, 141)
HSLhsl(246, 76%, 31%)
HSVhsv(246, 87%, 55%)
CMYKcmyk(77.3%, 86.5%, 0%, 44.7%)
CIE-LABlab(18.78, 45.05, -63.18)
CIE-LCHlch(18.78, 77.60, 305.49°)
OKLaboklab(32% 0.0112 -0.1827)
OKLCHoklch(32% 0.183 273.5)
XYZxyz(5.6347, 2.6953, 25.4174)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20138D #808D13
analogous
#13438D #20138D #5D138D
triadic
#20138D #8D2013 #138D20
tetradic
#20138D #8D1343 #808D13 #138D5D
square
#20138D #8D1343 #808D13 #138D5D
split-complementary
#20138D #8D5D13 #438D13
monochromatic
#080421 #140C57 #20138D #2C1AC3 #4936E4

Accessibility & contrast

On white

13.64
#20138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#20138D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20138D
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20138D#FFFFFF#000000##FFFFFF
##20138D1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003390
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20138d;
/* rgb */ color: rgb(32, 19, 141);
/* oklch */ color: oklch(32.0% 0.183 273.5);
Tailwind
colors: {
  custom: {
    50: '#7056b0',
    500: '#20138d',
    950: '#000000',
  },
}
SCSS
$custom: #20138d;
$custom-light: #7056b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20138d",
  "rgb": {
    "r": 32,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 246.393,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32001,
    "c": 0.18303,
    "h": 273.5
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#20138D
secondary
#B3C13B
accent
#F335DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #20138D

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

Preview Lab → · Contrast checker → · Palette generator →

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