#20145B#20145B

#20145B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.119 H 282.1°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#20145B
RGBrgb(32, 20, 91)
HSLhsl(250, 64%, 22%)
HSVhsv(250, 78%, 36%)
CMYKcmyk(64.8%, 78%, 0%, 64.3%)
CIE-LABlab(13.00, 28.19, -40.39)
CIE-LCHlch(13.00, 49.26, 304.91°)
OKLaboklab(26.23% 0.025 -0.1164)
OKLCHoklch(26.23% 0.119 282.1)
XYZxyz(2.7336, 1.5625, 10.0531)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20145B #4F5B14
analogous
#142C5B #20145B #44145B
triadic
#20145B #5B2014 #145B20
tetradic
#20145B #5B142C #4F5B14 #145B44
square
#20145B #5B142C #4F5B14 #145B44
split-complementary
#20145B #5B4414 #2C5B14
monochromatic
#090619 #0E0929 #20145B #321F8D #432ABF

Accessibility & contrast

On white

16.00
#20145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#20145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20145B
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20145B#FFFFFF#000000##FFFFFF
##20145B1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20145b;
/* rgb */ color: rgb(32, 20, 91);
/* oklch */ color: oklch(26.2% 0.119 282.1);
Tailwind
colors: {
  custom: {
    50: '#64538a',
    500: '#20145b',
    950: '#000000',
  },
}
SCSS
$custom: #20145b;
$custom-light: #64538a;
$custom-dark: #000000;
JSON
{
  "hex": "#20145b",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 250.141,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26232,
    "c": 0.1191,
    "h": 282.1
  },
  "luminance": 0.01563
}

Semantic roles & 50–950 ramp

primary
#20145B
secondary
#839338
accent
#E741CB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20145B

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

Preview Lab → · Contrast checker → · Palette generator →

#20145B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva