#1A082B#1A082B

#1A082B is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.6% C 0.069 H 304.2°. Best body text is #FFFFFF at 18.86:1 contrast (WCAG AA passes).

Color values

HEX#1A082B
RGBrgb(26, 8, 43)
HSLhsl(271, 69%, 10%)
HSVhsv(271, 81%, 17%)
CMYKcmyk(39.5%, 81.4%, 0%, 83.1%)
CIE-LABlab(5.13, 16.59, -19.21)
CIE-LCHlch(5.13, 25.39, 310.81°)
OKLaboklab(18.65% 0.0385 -0.0567)
OKLCHoklch(18.65% 0.069 304.2)
XYZxyz(0.9488, 0.5677, 2.3446)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A082B #192B08
analogous
#09082B #1A082B #2B082A
triadic
#1A082B #2B1A08 #082B1A
tetradic
#1A082B #2B0908 #192B08 #082A2B
square
#1A082B #2B0908 #192B08 #082A2B
split-complementary
#1A082B #2A2B08 #082B09
monochromatic
#10051A #10051A #1A082B #39125F #581B92

Accessibility & contrast

On white

18.86
#1A082B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1A082B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A082B
18.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A082B#FFFFFF#000000##FFFFFF
##1A082B1.0018.861.1118.86
#FFFFFF18.861.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112C
Deuteranopia (green-blind)
#01112A
Tritanopia (blue-blind)
#171018
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1a082b;
/* rgb */ color: rgb(26, 8, 43);
/* oklch */ color: oklch(18.6% 0.069 304.2);
Tailwind
colors: {
  custom: {
    50: '#574a64',
    500: '#1a082b',
    950: '#000000',
  },
}
SCSS
$custom: #1a082b;
$custom-light: #574a64;
$custom-dark: #000000;
JSON
{
  "hex": "#1a082b",
  "rgb": {
    "r": 26,
    "g": 8,
    "b": 43
  },
  "hsl": {
    "h": 270.857,
    "s": 68.627,
    "l": 10
  },
  "oklch": {
    "l": 0.18646,
    "c": 0.0685,
    "h": 304.2
  },
  "luminance": 0.00568
}

Semantic roles & 50–950 ramp

primary
#1A082B
secondary
#466A25
accent
#EB3C91
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030105
muted
#78777A

Preview Lab

Preview with #1A082B

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

Preview Lab → · Contrast checker → · Palette generator →

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