#1A0340#1A0340

#1A0340 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.104 H 291.6°. Best body text is #FFFFFF at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#1A0340
RGBrgb(26, 3, 64)
HSLhsl(263, 91%, 13%)
HSVhsv(263, 95%, 25%)
CMYKcmyk(59.4%, 95.3%, 0%, 74.9%)
CIE-LABlab(5.91, 27.63, -33.37)
CIE-LCHlch(5.91, 43.32, 309.62°)
OKLaboklab(20.04% 0.0384 -0.097)
OKLCHoklch(20.04% 0.104 291.6)
XYZxyz(1.3837, 0.6548, 4.9030)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0340 #294003
analogous
#030A40 #1A0340 #380340
triadic
#1A0340 #401A03 #03401A
tetradic
#1A0340 #40030A #294003 #034038
square
#1A0340 #40030A #294003 #034038
split-complementary
#1A0340 #403803 #0A4003
monochromatic
#0C011D #0C011D #1A0340 #32067A #4908B5

Accessibility & contrast

On white

18.57
#1A0340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1A0340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0340
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0340#FFFFFF#000000##FFFFFF
##1A03401.0018.571.1318.57
#FFFFFF18.571.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a0340;
/* rgb */ color: rgb(26, 3, 64);
/* oklch */ color: oklch(20.0% 0.104 291.6);
Tailwind
colors: {
  custom: {
    50: '#5c4776',
    500: '#1a0340',
    950: '#000000',
  },
}
SCSS
$custom: #1a0340;
$custom-light: #5c4776;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0340",
  "rgb": {
    "r": 26,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 262.623,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20045,
    "c": 0.10429,
    "h": 291.6
  },
  "luminance": 0.00655
}

Semantic roles & 50–950 ramp

primary
#1A0340
secondary
#5C821D
accent
#FF29AE
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #1A0340

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

Preview Lab → · Contrast checker → · Palette generator →

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