#20124C#20124C

#20124C is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.3% C 0.101 H 287.5°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#20124C
RGBrgb(32, 18, 76)
HSLhsl(254, 62%, 18%)
HSVhsv(254, 76%, 30%)
CMYKcmyk(57.9%, 76.3%, 0%, 70.2%)
CIE-LABlab(11.00, 24.27, -33.44)
CIE-LCHlch(11.00, 41.32, 305.97°)
OKLaboklab(24.34% 0.0303 -0.0961)
OKLCHoklch(24.34% 0.101 287.5)
XYZxyz(2.1161, 1.2614, 6.9680)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20124C #3E4C12
analogous
#12214C #20124C #3D124C
triadic
#20124C #4C2012 #124C20
tetradic
#20124C #4C1221 #3E4C12 #124C3D
square
#20124C #4C1221 #3E4C12 #124C3D
split-complementary
#20124C #4C3D12 #214C12
monochromatic
#0A0619 #0B061B #20124C #351E7D #4A29AF

Accessibility & contrast

On white

16.77
#20124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#20124C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20124C
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20124C#FFFFFF#000000##FFFFFF
##20124C1.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001C4B
Tritanopia (blue-blind)
#0F212D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #20124c;
/* rgb */ color: rgb(32, 18, 76);
/* oklch */ color: oklch(24.3% 0.101 287.5);
Tailwind
colors: {
  custom: {
    50: '#61517f',
    500: '#20124c',
    950: '#000000',
  },
}
SCSS
$custom: #20124c;
$custom-light: #61517f;
$custom-dark: #000000;
JSON
{
  "hex": "#20124c",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 254.483,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24335,
    "c": 0.10072,
    "h": 287.5
  },
  "luminance": 0.01261
}

Semantic roles & 50–950 ramp

primary
#20124C
secondary
#728535
accent
#E543BE
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #20124C

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

Preview Lab → · Contrast checker → · Palette generator →

#20124C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva