#1A0742#1A0742

#1A0742 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.101 H 289.2°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#1A0742
RGBrgb(26, 7, 66)
HSLhsl(259, 81%, 14%)
HSVhsv(259, 89%, 26%)
CMYKcmyk(60.6%, 89.4%, 0%, 74.1%)
CIE-LABlab(6.91, 26.26, -33.17)
CIE-LCHlch(6.91, 42.30, 308.36°)
OKLaboklab(20.91% 0.0333 -0.0957)
OKLCHoklch(20.91% 0.101 289.2)
XYZxyz(1.4851, 0.7648, 5.2226)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0742 #2F4207
analogous
#071242 #1A0742 #380742
triadic
#1A0742 #421A07 #07421A
tetradic
#1A0742 #420712 #2F4207 #074238
square
#1A0742 #420712 #2F4207 #074238
split-complementary
#1A0742 #423807 #124207
monochromatic
#0B031C #0B031C #1A0742 #300D79 #4613B1

Accessibility & contrast

On white

18.21
#1A0742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A0742
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0742#FFFFFF#000000##FFFFFF
##1A07421.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001644
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#0A1825
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1a0742;
/* rgb */ color: rgb(26, 7, 66);
/* oklch */ color: oklch(20.9% 0.101 289.2);
Tailwind
colors: {
  custom: {
    50: '#5d4977',
    500: '#1a0742',
    950: '#000000',
  },
}
SCSS
$custom: #1a0742;
$custom-light: #5d4977;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0742",
  "rgb": {
    "r": 26,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 259.322,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2091,
    "c": 0.10132,
    "h": 289.2
  },
  "luminance": 0.00765
}

Semantic roles & 50–950 ramp

primary
#1A0742
secondary
#638124
accent
#F731B7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #1A0742

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

Preview Lab → · Contrast checker → · Palette generator →

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