#20138C#20138C

#20138C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.182 H 273.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#20138C
RGBrgb(32, 19, 140)
HSLhsl(246, 76%, 31%)
HSVhsv(246, 86%, 55%)
CMYKcmyk(77.1%, 86.4%, 0%, 45.1%)
CIE-LABlab(18.65, 44.74, -62.77)
CIE-LCHlch(18.65, 77.08, 305.48°)
OKLaboklab(31.88% 0.0114 -0.1815)
OKLCHoklch(31.88% 0.182 273.6)
XYZxyz(5.5606, 2.6657, 25.0273)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20138C #7F8C13
analogous
#13428C #20138C #5C138C
triadic
#20138C #8C2013 #138C20
tetradic
#20138C #8C1342 #7F8C13 #138C5C
square
#20138C #8C1342 #7F8C13 #138C5C
split-complementary
#20138C #8C5C13 #428C13
monochromatic
#070420 #140C56 #20138C #2C1AC2 #4836E4

Accessibility & contrast

On white

13.70
#20138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#20138C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20138C
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20138C#FFFFFF#000000##FFFFFF
##20138C1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #20138c;
/* rgb */ color: rgb(32, 19, 140);
/* oklch */ color: oklch(31.9% 0.182 273.6);
Tailwind
colors: {
  custom: {
    50: '#7056af',
    500: '#20138c',
    950: '#000000',
  },
}
SCSS
$custom: #20138c;
$custom-light: #7056af;
$custom-dark: #000000;
JSON
{
  "hex": "#20138c",
  "rgb": {
    "r": 32,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 246.446,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31876,
    "c": 0.18185,
    "h": 273.6
  },
  "luminance": 0.02666
}

Semantic roles & 50–950 ramp

primary
#20138C
secondary
#B2C03B
accent
#F335DE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #20138C

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

Preview Lab → · Contrast checker → · Palette generator →

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