#1A042D#1A042D

#1A042D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.1% C 0.079 H 304.5°. Best body text is #FFFFFF at 19.10:1 contrast (WCAG AA passes).

Color values

HEX#1A042D
RGBrgb(26, 4, 45)
HSLhsl(272, 84%, 10%)
HSVhsv(272, 91%, 18%)
CMYKcmyk(42.2%, 91.1%, 0%, 82.4%)
CIE-LABlab(4.48, 19.17, -21.75)
CIE-LCHlch(4.48, 28.99, 311.39°)
OKLaboklab(18.06% 0.045 -0.0654)
OKLCHoklch(18.06% 0.079 304.5)
XYZxyz(0.9430, 0.4959, 2.5282)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A042D #172D04
analogous
#06042D #1A042D #2D042C
triadic
#1A042D #2D1A04 #042D1A
tetradic
#1A042D #2D0604 #172D04 #042C2D
square
#1A042D #2D0604 #172D04 #042C2D
split-complementary
#1A042D #2C2D04 #042D06
monochromatic
#10021C #10021C #1A042D #3A0965 #5B0E9D

Accessibility & contrast

On white

19.10
#1A042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A042D
19.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A042D#FFFFFF#000000##FFFFFF
##1A042D1.0019.101.1019.10
#FFFFFF19.101.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2E
Deuteranopia (green-blind)
#000F2C
Tritanopia (blue-blind)
#160D18
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1a042d;
/* rgb */ color: rgb(26, 4, 45);
/* oklch */ color: oklch(18.1% 0.079 304.5);
Tailwind
colors: {
  custom: {
    50: '#584866',
    500: '#1a042d',
    950: '#000000',
  },
}
SCSS
$custom: #1a042d;
$custom-light: #584866;
$custom-dark: #000000;
JSON
{
  "hex": "#1a042d",
  "rgb": {
    "r": 26,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 272.195,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18059,
    "c": 0.07936,
    "h": 304.5
  },
  "luminance": 0.00496
}

Semantic roles & 50–950 ramp

primary
#1A042D
secondary
#43701D
accent
#FA2E8C
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #1A042D

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

Preview Lab → · Contrast checker → · Palette generator →

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