#1C042E#1C042E

#1C042E is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.5% C 0.081 H 306.4°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#1C042E
RGBrgb(28, 4, 46)
HSLhsl(274, 84%, 10%)
HSVhsv(274, 91%, 18%)
CMYKcmyk(39.1%, 91.3%, 0%, 82%)
CIE-LABlab(4.80, 20.48, -21.98)
CIE-LCHlch(4.80, 30.04, 312.97°)
OKLaboklab(18.48% 0.0482 -0.0653)
OKLCHoklch(18.48% 0.081 306.4)
XYZxyz(1.0153, 0.5310, 2.6332)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C042E #162E04
analogous
#07042E #1C042E #2E042B
triadic
#1C042E #2E1C04 #042E1C
tetradic
#1C042E #2E0704 #162E04 #042B2E
square
#1C042E #2E0704 #162E04 #042B2E
split-complementary
#1C042E #2B2E04 #042E07
monochromatic
#11021C #11021C #1C042E #3E0966 #610E9F

Accessibility & contrast

On white

18.98
#1C042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C042E
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C042E#FFFFFF#000000##FFFFFF
##1C042E1.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102F
Deuteranopia (green-blind)
#00102D
Tritanopia (blue-blind)
#190E18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1c042e;
/* rgb */ color: rgb(28, 4, 46);
/* oklch */ color: oklch(18.5% 0.081 306.4);
Tailwind
colors: {
  custom: {
    50: '#5a4867',
    500: '#1c042e',
    950: '#000000',
  },
}
SCSS
$custom: #1c042e;
$custom-light: #5a4867;
$custom-dark: #000000;
JSON
{
  "hex": "#1c042e",
  "rgb": {
    "r": 28,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 274.286,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18484,
    "c": 0.08117,
    "h": 306.4
  },
  "luminance": 0.00531
}

Semantic roles & 50–950 ramp

primary
#1C042E
secondary
#41711D
accent
#FA2E85
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1C042E

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

Preview Lab → · Contrast checker → · Palette generator →

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