#1A0A42#1A0A42

#1A0A42 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.098 H 288.2°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#1A0A42
RGBrgb(26, 10, 66)
HSLhsl(257, 74%, 15%)
HSVhsv(257, 85%, 26%)
CMYKcmyk(60.6%, 84.8%, 0%, 74.1%)
CIE-LABlab(7.50, 24.62, -32.20)
CIE-LCHlch(7.50, 40.54, 307.40°)
OKLaboklab(21.35% 0.0305 -0.0927)
OKLCHoklch(21.35% 0.098 288.2)
XYZxyz(1.5176, 0.8300, 5.2334)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0A42 #32420A
analogous
#0A1642 #1A0A42 #360A42
triadic
#1A0A42 #421A0A #0A421A
tetradic
#1A0A42 #420A16 #32420A #0A4236
square
#1A0A42 #420A16 #32420A #0A4236
split-complementary
#1A0A42 #42360A #16420A
monochromatic
#0A041B #0A041B #1A0A42 #2F1277 #441AAC

Accessibility & contrast

On white

18.01
#1A0A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1A0A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0A42
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0A42#FFFFFF#000000##FFFFFF
##1A0A421.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#0A1A25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1a0a42;
/* rgb */ color: rgb(26, 10, 66);
/* oklch */ color: oklch(21.3% 0.098 288.2);
Tailwind
colors: {
  custom: {
    50: '#5c4b77',
    500: '#1a0a42',
    950: '#000000',
  },
}
SCSS
$custom: #1a0a42;
$custom-light: #5c4b77;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0a42",
  "rgb": {
    "r": 26,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 257.143,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2135,
    "c": 0.09756,
    "h": 288.2
  },
  "luminance": 0.0083
}

Semantic roles & 50–950 ramp

primary
#1A0A42
secondary
#667F29
accent
#F037BC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #1A0A42

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

Preview Lab → · Contrast checker → · Palette generator →

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