#20155A#20155A

#20155A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.3% C 0.117 H 282.1°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#20155A
RGBrgb(32, 21, 90)
HSLhsl(250, 62%, 22%)
HSVhsv(250, 77%, 35%)
CMYKcmyk(64.4%, 76.7%, 0%, 64.7%)
CIE-LABlab(13.12, 27.22, -39.53)
CIE-LCHlch(13.12, 48.00, 304.55°)
OKLaboklab(26.28% 0.0244 -0.1139)
OKLCHoklch(26.28% 0.117 282.1)
XYZxyz(2.7087, 1.5814, 9.8334)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20155A #4F5A15
analogous
#152D5A #20155A #43155A
triadic
#20155A #5A2015 #155A20
tetradic
#20155A #5A152D #4F5A15 #155A43
square
#20155A #5A152D #4F5A15 #155A43
split-complementary
#20155A #5A4315 #2D5A15
monochromatic
#090619 #0E0928 #20155A #32218C #432CBD

Accessibility & contrast

On white

15.95
#20155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#20155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20155A
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20155A#FFFFFF#000000##FFFFFF
##20155A1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#001F59
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #20155a;
/* rgb */ color: rgb(32, 21, 90);
/* oklch */ color: oklch(26.3% 0.117 282.1);
Tailwind
colors: {
  custom: {
    50: '#645389',
    500: '#20155a',
    950: '#000000',
  },
}
SCSS
$custom: #20155a;
$custom-light: #645389;
$custom-dark: #000000;
JSON
{
  "hex": "#20155a",
  "rgb": {
    "r": 32,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 249.565,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26282,
    "c": 0.1165,
    "h": 282.1
  },
  "luminance": 0.01582
}

Semantic roles & 50–950 ramp

primary
#20155A
secondary
#839239
accent
#E543CB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20155A

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

Preview Lab → · Contrast checker → · Palette generator →

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