#1A0842#1A0842

#1A0842 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.100 H 288.9°. Best body text is #FFFFFF at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#1A0842
RGBrgb(26, 8, 66)
HSLhsl(259, 78%, 15%)
HSVhsv(259, 88%, 26%)
CMYKcmyk(60.6%, 87.9%, 0%, 74.1%)
CIE-LABlab(7.11, 25.71, -32.85)
CIE-LCHlch(7.11, 41.71, 308.05°)
OKLaboklab(21.06% 0.0324 -0.0947)
OKLCHoklch(21.06% 0.1 288.9)
XYZxyz(1.4959, 0.7866, 5.2262)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0842 #304208
analogous
#081342 #1A0842 #370842
triadic
#1A0842 #421A08 #08421A
tetradic
#1A0842 #420813 #304208 #084237
square
#1A0842 #420813 #304208 #084237
split-complementary
#1A0842 #423708 #134208
monochromatic
#0B031B #0B031B #1A0842 #300F79 #4515AF

Accessibility & contrast

On white

18.14
#1A0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1A0842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0842
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0842#FFFFFF#000000##FFFFFF
##1A08421.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#0A1925
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1a0842;
/* rgb */ color: rgb(26, 8, 66);
/* oklch */ color: oklch(21.1% 0.100 288.9);
Tailwind
colors: {
  custom: {
    50: '#5c4a77',
    500: '#1a0842',
    950: '#000000',
  },
}
SCSS
$custom: #1a0842;
$custom-light: #5c4a77;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0842",
  "rgb": {
    "r": 26,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 258.621,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.21059,
    "c": 0.10004,
    "h": 288.9
  },
  "luminance": 0.00787
}

Semantic roles & 50–950 ramp

primary
#1A0842
secondary
#648025
accent
#F533B9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #1A0842

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

Preview Lab → · Contrast checker → · Palette generator →

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