#1C042D#1C042D

#1C042D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.4% C 0.080 H 307.4°. Best body text is #FFFFFF at 19.01:1 contrast (WCAG AA passes).

Color values

HEX#1C042D
RGBrgb(28, 4, 45)
HSLhsl(275, 84%, 10%)
HSVhsv(275, 91%, 18%)
CMYKcmyk(37.8%, 91.1%, 0%, 82.4%)
CIE-LABlab(4.73, 20.08, -21.34)
CIE-LCHlch(4.73, 29.30, 313.25°)
OKLaboklab(18.38% 0.0485 -0.0636)
OKLCHoklch(18.38% 0.08 307.4)
XYZxyz(0.9959, 0.5232, 2.5306)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C042D #152D04
analogous
#08042D #1C042D #2D042A
triadic
#1C042D #2D1C04 #042D1C
tetradic
#1C042D #2D0804 #152D04 #042A2D
square
#1C042D #2D0804 #152D04 #042A2D
split-complementary
#1C042D #2A2D04 #042D08
monochromatic
#11021C #11021C #1C042D #3F0965 #620E9D

Accessibility & contrast

On white

19.01
#1C042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#1C042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C042D
19.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C042D#FFFFFF#000000##FFFFFF
##1C042D1.0019.011.1019.01
#FFFFFF19.011.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2E
Deuteranopia (green-blind)
#00102C
Tritanopia (blue-blind)
#190D18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1c042d;
/* rgb */ color: rgb(28, 4, 45);
/* oklch */ color: oklch(18.4% 0.080 307.4);
Tailwind
colors: {
  custom: {
    50: '#594866',
    500: '#1c042d',
    950: '#000000',
  },
}
SCSS
$custom: #1c042d;
$custom-light: #594866;
$custom-dark: #000000;
JSON
{
  "hex": "#1c042d",
  "rgb": {
    "r": 28,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 275.122,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18383,
    "c": 0.07996,
    "h": 307.4
  },
  "luminance": 0.00523
}

Semantic roles & 50–950 ramp

primary
#1C042D
secondary
#3F701D
accent
#FA2E82
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1C042D

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

Preview Lab → · Contrast checker → · Palette generator →

#1C042D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva