#1A042A#1A042A

#1A042A is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.8% C 0.076 H 307.3°. Best body text is #FFFFFF at 19.18:1 contrast (WCAG AA passes).

Color values

HEX#1A042A
RGBrgb(26, 4, 42)
HSLhsl(275, 83%, 9%)
HSVhsv(275, 90%, 16%)
CMYKcmyk(38.1%, 90.5%, 0%, 83.5%)
CIE-LABlab(4.28, 17.87, -19.80)
CIE-LCHlch(4.28, 26.67, 312.07°)
OKLaboklab(17.75% 0.0459 -0.0602)
OKLCHoklch(17.75% 0.076 307.3)
XYZxyz(0.8872, 0.4736, 2.2347)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A042A #142A04
analogous
#07042A #1A042A #2A0427
triadic
#1A042A #2A1A04 #042A1A
tetradic
#1A042A #2A0704 #142A04 #04272A
square
#1A042A #2A0704 #142A04 #04272A
split-complementary
#1A042A #272A04 #042A07
monochromatic
#11031C #11031C #1A042A #3D0962 #5F0F9A

Accessibility & contrast

On white

19.18
#1A042A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#1A042A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A042A
19.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A042A#FFFFFF#000000##FFFFFF
##1A042A1.0019.181.0919.18
#FFFFFF19.181.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#000F29
Tritanopia (blue-blind)
#170C16
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1a042a;
/* rgb */ color: rgb(26, 4, 42);
/* oklch */ color: oklch(17.8% 0.076 307.3);
Tailwind
colors: {
  custom: {
    50: '#574864',
    500: '#1a042a',
    950: '#000000',
  },
}
SCSS
$custom: #1a042a;
$custom-light: #574864;
$custom-dark: #000000;
JSON
{
  "hex": "#1a042a",
  "rgb": {
    "r": 26,
    "g": 4,
    "b": 42
  },
  "hsl": {
    "h": 274.737,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.17754,
    "c": 0.07565,
    "h": 307.3
  },
  "luminance": 0.00474
}

Semantic roles & 50–950 ramp

primary
#1A042A
secondary
#3F6D1D
accent
#F92F84
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#030005
muted
#787779

Preview Lab

Preview with #1A042A

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

Preview Lab → · Contrast checker → · Palette generator →

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