#20138A#20138A

#20138A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.179 H 273.8°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#20138A
RGBrgb(32, 19, 138)
HSLhsl(247, 76%, 31%)
HSVhsv(247, 86%, 54%)
CMYKcmyk(76.8%, 86.2%, 0%, 45.9%)
CIE-LABlab(18.40, 44.13, -61.94)
CIE-LCHlch(18.40, 76.05, 305.47°)
OKLaboklab(31.63% 0.012 -0.1791)
OKLCHoklch(31.63% 0.179 273.8)
XYZxyz(5.4145, 2.6072, 24.2577)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20138A #7D8A13
analogous
#13418A #20138A #5B138A
triadic
#20138A #8A2013 #138A20
tetradic
#20138A #8A1341 #7D8A13 #138A5B
square
#20138A #8A1341 #7D8A13 #138A5B
split-complementary
#20138A #8A5B13 #418A13
monochromatic
#07041E #140C54 #20138A #2C1AC0 #4734E3

Accessibility & contrast

On white

13.80
#20138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#20138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20138A
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20138A#FFFFFF#000000##FFFFFF
##20138A1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #20138a;
/* rgb */ color: rgb(32, 19, 138);
/* oklch */ color: oklch(31.6% 0.179 273.8);
Tailwind
colors: {
  custom: {
    50: '#7056ae',
    500: '#20138a',
    950: '#000000',
  },
}
SCSS
$custom: #20138a;
$custom-light: #7056ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20138a",
  "rgb": {
    "r": 32,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 246.555,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31628,
    "c": 0.17949,
    "h": 273.8
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#20138A
secondary
#B0BE3A
accent
#F235DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #20138A

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

Preview Lab → · Contrast checker → · Palette generator →

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