#1A0538#1A0538

#1A0538 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.091 H 295.6°. Best body text is #FFFFFF at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#1A0538
RGBrgb(26, 5, 56)
HSLhsl(265, 84%, 12%)
HSVhsv(265, 91%, 22%)
CMYKcmyk(53.6%, 91.1%, 0%, 78%)
CIE-LABlab(5.54, 23.37, -28.19)
CIE-LCHlch(5.54, 36.62, 309.66°)
OKLaboklab(19.44% 0.0395 -0.0824)
OKLCHoklch(19.44% 0.091 295.6)
XYZxyz(1.1939, 0.6136, 3.7962)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0538 #233805
analogous
#050938 #1A0538 #340538
triadic
#1A0538 #381A05 #05381A
tetradic
#1A0538 #380509 #233805 #053834
square
#1A0538 #380509 #233805 #053834
split-complementary
#1A0538 #383405 #093805
monochromatic
#0D031C #0D031C #1A0538 #340A70 #4E0FA8

Accessibility & contrast

On white

18.70
#1A0538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1A0538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0538
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0538#FFFFFF#000000##FFFFFF
##1A05381.0018.701.1218.70
#FFFFFF18.701.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001339
Deuteranopia (green-blind)
#001137
Tritanopia (blue-blind)
#11131E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1a0538;
/* rgb */ color: rgb(26, 5, 56);
/* oklch */ color: oklch(19.4% 0.091 295.6);
Tailwind
colors: {
  custom: {
    50: '#5a486f',
    500: '#1a0538',
    950: '#000000',
  },
}
SCSS
$custom: #1a0538;
$custom-light: #5a486f;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0538",
  "rgb": {
    "r": 26,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 264.706,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19438,
    "c": 0.09132,
    "h": 295.6
  },
  "luminance": 0.00614
}

Semantic roles & 50–950 ramp

primary
#1A0538
secondary
#547920
accent
#FA2EA6
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1A0538

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

Preview Lab → · Contrast checker → · Palette generator →

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