#1A0440#1A0440

#1A0440 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.103 H 291.2°. Best body text is #FFFFFF at 18.50:1 contrast (WCAG AA passes).

Color values

HEX#1A0440
RGBrgb(26, 4, 64)
HSLhsl(262, 88%, 13%)
HSVhsv(262, 94%, 25%)
CMYKcmyk(59.4%, 93.8%, 0%, 74.9%)
CIE-LABlab(6.11, 27.10, -33.05)
CIE-LCHlch(6.11, 42.74, 309.35°)
OKLaboklab(20.21% 0.0373 -0.0959)
OKLCHoklch(20.21% 0.103 291.2)
XYZxyz(1.3946, 0.6766, 4.9066)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0440 #2A4004
analogous
#040C40 #1A0440 #380440
triadic
#1A0440 #401A04 #04401A
tetradic
#1A0440 #40040C #2A4004 #044038
square
#1A0440 #40040C #2A4004 #044038
split-complementary
#1A0440 #403804 #0C4004
monochromatic
#0C021D #0C021D #1A0440 #31087A #490BB3

Accessibility & contrast

On white

18.50
#1A0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1A0440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0440
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0440#FFFFFF#000000##FFFFFF
##1A04401.0018.501.1418.50
#FFFFFF18.501.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#00123F
Tritanopia (blue-blind)
#0C1623
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1a0440;
/* rgb */ color: rgb(26, 4, 64);
/* oklch */ color: oklch(20.2% 0.103 291.2);
Tailwind
colors: {
  custom: {
    50: '#5c4775',
    500: '#1a0440',
    950: '#000000',
  },
}
SCSS
$custom: #1a0440;
$custom-light: #5c4775;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0440",
  "rgb": {
    "r": 26,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 262,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20207,
    "c": 0.10285,
    "h": 291.2
  },
  "luminance": 0.00677
}

Semantic roles & 50–950 ramp

primary
#1A0440
secondary
#5D811F
accent
#FE29B0
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #1A0440

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

Preview Lab → · Contrast checker → · Palette generator →

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