#20145A#20145A

#20145A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.118 H 282.4°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#20145A
RGBrgb(32, 20, 90)
HSLhsl(250, 64%, 22%)
HSVhsv(250, 78%, 35%)
CMYKcmyk(64.4%, 77.8%, 0%, 64.7%)
CIE-LABlab(12.89, 27.84, -39.90)
CIE-LCHlch(12.89, 48.65, 304.91°)
OKLaboklab(26.12% 0.0253 -0.115)
OKLCHoklch(26.12% 0.118 282.4)
XYZxyz(2.6907, 1.5454, 9.8274)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20145A #4E5A14
analogous
#142B5A #20145A #43145A
triadic
#20145A #5A2014 #145A20
tetradic
#20145A #5A142B #4E5A14 #145A43
square
#20145A #5A142B #4E5A14 #145A43
split-complementary
#20145A #5A4314 #2B5A14
monochromatic
#090619 #0E0928 #20145A #321F8C #442ABE

Accessibility & contrast

On white

16.04
#20145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20145A
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20145A#FFFFFF#000000##FFFFFF
##20145A1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20145a;
/* rgb */ color: rgb(32, 20, 90);
/* oklch */ color: oklch(26.1% 0.118 282.4);
Tailwind
colors: {
  custom: {
    50: '#645389',
    500: '#20145a',
    950: '#000000',
  },
}
SCSS
$custom: #20145a;
$custom-light: #645389;
$custom-dark: #000000;
JSON
{
  "hex": "#20145a",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 250.286,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26124,
    "c": 0.11772,
    "h": 282.4
  },
  "luminance": 0.01546
}

Semantic roles & 50–950 ramp

primary
#20145A
secondary
#829238
accent
#E741CA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20145A

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

Preview Lab → · Contrast checker → · Palette generator →

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