#1C042F#1C042F

#1C042F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.6% C 0.082 H 305.6°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#1C042F
RGBrgb(28, 4, 47)
HSLhsl(273, 84%, 10%)
HSVhsv(273, 91%, 18%)
CMYKcmyk(40.4%, 91.5%, 0%, 81.6%)
CIE-LABlab(4.87, 20.88, -22.62)
CIE-LCHlch(4.87, 30.78, 312.72°)
OKLaboklab(18.59% 0.0479 -0.067)
OKLCHoklch(18.59% 0.082 305.6)
XYZxyz(1.0353, 0.5390, 2.7383)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C042F #172F04
analogous
#06042F #1C042F #2F042D
triadic
#1C042F #2F1C04 #042F1C
tetradic
#1C042F #2F0604 #172F04 #042D2F
square
#1C042F #2F0604 #172F04 #042D2F
split-complementary
#1C042F #2D2F04 #042F06
monochromatic
#11021C #11021C #1C042F #3E0967 #5F0EA0

Accessibility & contrast

On white

18.96
#1C042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1C042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C042F
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C042F#FFFFFF#000000##FFFFFF
##1C042F1.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#180E19
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1c042f;
/* rgb */ color: rgb(28, 4, 47);
/* oklch */ color: oklch(18.6% 0.082 305.6);
Tailwind
colors: {
  custom: {
    50: '#5a4868',
    500: '#1c042f',
    950: '#000000',
  },
}
SCSS
$custom: #1c042f;
$custom-light: #5a4868;
$custom-dark: #000000;
JSON
{
  "hex": "#1c042f",
  "rgb": {
    "r": 28,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 273.488,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.18586,
    "c": 0.08238,
    "h": 305.6
  },
  "luminance": 0.00539
}

Semantic roles & 50–950 ramp

primary
#1C042F
secondary
#43721D
accent
#FB2D88
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1C042F

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

Preview Lab → · Contrast checker → · Palette generator →

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