#20138E#20138E

#20138E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.184 H 273.4°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#20138E
RGBrgb(32, 19, 142)
HSLhsl(246, 76%, 32%)
HSVhsv(246, 87%, 56%)
CMYKcmyk(77.5%, 86.6%, 0%, 44.3%)
CIE-LABlab(18.91, 45.35, -63.59)
CIE-LCHlch(18.91, 78.11, 305.50°)
OKLaboklab(32.13% 0.0109 -0.1839)
OKLCHoklch(32.13% 0.184 273.4)
XYZxyz(5.7094, 2.7252, 25.8111)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20138E #818E13
analogous
#13448E #20138E #5E138E
triadic
#20138E #8E2013 #138E20
tetradic
#20138E #8E1344 #818E13 #138E5E
square
#20138E #8E1344 #818E13 #138E5E
split-complementary
#20138E #8E5E13 #448E13
monochromatic
#080522 #140C58 #20138E #2C1AC4 #4937E4

Accessibility & contrast

On white

13.59
#20138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#20138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20138E
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20138E#FFFFFF#000000##FFFFFF
##20138E1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20138e;
/* rgb */ color: rgb(32, 19, 142);
/* oklch */ color: oklch(32.1% 0.184 273.4);
Tailwind
colors: {
  custom: {
    50: '#7156b0',
    500: '#20138e',
    950: '#000000',
  },
}
SCSS
$custom: #20138e;
$custom-light: #7156b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20138e",
  "rgb": {
    "r": 32,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 246.341,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32125,
    "c": 0.1842,
    "h": 273.4
  },
  "luminance": 0.02726
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20138E

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

Preview Lab → · Contrast checker → · Palette generator →

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