#1A0942#1A0942

#1A0942 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.099 H 288.5°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#1A0942
RGBrgb(26, 9, 66)
HSLhsl(258, 76%, 15%)
HSVhsv(258, 86%, 26%)
CMYKcmyk(60.6%, 86.4%, 0%, 74.1%)
CIE-LABlab(7.30, 25.17, -32.53)
CIE-LCHlch(7.30, 41.13, 307.73°)
OKLaboklab(21.21% 0.0314 -0.0937)
OKLCHoklch(21.21% 0.099 288.5)
XYZxyz(1.5068, 0.8083, 5.2298)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0942 #314209
analogous
#091442 #1A0942 #370942
triadic
#1A0942 #421A09 #09421A
tetradic
#1A0942 #420914 #314209 #094237
square
#1A0942 #420914 #314209 #094237
split-complementary
#1A0942 #423709 #144209
monochromatic
#0B041B #0B041B #1A0942 #2F1078 #4418AE

Accessibility & contrast

On white

18.08
#1A0942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A0942
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0942#FFFFFF#000000##FFFFFF
##1A09421.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a0942;
/* rgb */ color: rgb(26, 9, 66);
/* oklch */ color: oklch(21.2% 0.099 288.5);
Tailwind
colors: {
  custom: {
    50: '#5c4a77',
    500: '#1a0942',
    950: '#000000',
  },
}
SCSS
$custom: #1a0942;
$custom-light: #5c4a77;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0942",
  "rgb": {
    "r": 26,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 257.895,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21205,
    "c": 0.09879,
    "h": 288.5
  },
  "luminance": 0.00808
}

Semantic roles & 50–950 ramp

primary
#1A0942
secondary
#658027
accent
#F335BA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #1A0942

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

Preview Lab → · Contrast checker → · Palette generator →

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