#1A0840#1A0840

#1A0840 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.097 H 289.9°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#1A0840
RGBrgb(26, 8, 64)
HSLhsl(259, 78%, 14%)
HSVhsv(259, 88%, 25%)
CMYKcmyk(59.4%, 87.5%, 0%, 74.9%)
CIE-LABlab(6.90, 24.98, -31.77)
CIE-LCHlch(6.90, 40.41, 308.18°)
OKLaboklab(20.83% 0.0331 -0.0916)
OKLCHoklch(20.83% 0.097 289.9)
XYZxyz(1.4380, 0.7634, 4.9211)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0840 #2E4008
analogous
#081240 #1A0840 #360840
triadic
#1A0840 #401A08 #08401A
tetradic
#1A0840 #400812 #2E4008 #084036
square
#1A0840 #400812 #2E4008 #084036
split-complementary
#1A0840 #403608 #124008
monochromatic
#0B031B #0B031B #1A0840 #300F76 #4616AD

Accessibility & contrast

On white

18.22
#1A0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1A0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0840
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0840#FFFFFF#000000##FFFFFF
##1A08401.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#0C1824
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1a0840;
/* rgb */ color: rgb(26, 8, 64);
/* oklch */ color: oklch(20.8% 0.097 289.9);
Tailwind
colors: {
  custom: {
    50: '#5c4a75',
    500: '#1a0840',
    950: '#000000',
  },
}
SCSS
$custom: #1a0840;
$custom-light: #5c4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0840",
  "rgb": {
    "r": 26,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 259.286,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2083,
    "c": 0.09738,
    "h": 289.9
  },
  "luminance": 0.00763
}

Semantic roles & 50–950 ramp

primary
#1A0840
secondary
#627E25
accent
#F434B6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #1A0840

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

Preview Lab → · Contrast checker → · Palette generator →

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