#20155E#20155E

#20155E is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.7% C 0.122 H 281.1°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#20155E
RGBrgb(32, 21, 94)
HSLhsl(249, 63%, 23%)
HSVhsv(249, 78%, 37%)
CMYKcmyk(66%, 77.7%, 0%, 63.1%)
CIE-LABlab(13.54, 28.62, -41.52)
CIE-LCHlch(13.54, 50.43, 304.58°)
OKLaboklab(26.71% 0.0235 -0.1197)
OKLCHoklch(26.71% 0.122 281.1)
XYZxyz(2.8836, 1.6513, 10.7543)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20155E #535E15
analogous
#152F5E #20155E #44155E
triadic
#20155E #5E2015 #155E20
tetradic
#20155E #5E152F #535E15 #155E44
square
#20155E #5E152F #535E15 #155E44
split-complementary
#20155E #5E4415 #2F5E15
monochromatic
#090619 #0F0A2C #20155E #312090 #422BC2

Accessibility & contrast

On white

15.78
#20155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#20155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20155E
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20155E#FFFFFF#000000##FFFFFF
##20155E1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #20155e;
/* rgb */ color: rgb(32, 21, 94);
/* oklch */ color: oklch(26.7% 0.122 281.1);
Tailwind
colors: {
  custom: {
    50: '#65548c',
    500: '#20155e',
    950: '#000000',
  },
}
SCSS
$custom: #20155e;
$custom-light: #65548c;
$custom-dark: #000000;
JSON
{
  "hex": "#20155e",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 249.041,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26712,
    "c": 0.12201,
    "h": 281.1
  },
  "luminance": 0.01652
}

Semantic roles & 50–950 ramp

primary
#20155E
secondary
#879539
accent
#E741CE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20155E

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

Preview Lab → · Contrast checker → · Palette generator →

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