#1A0331#1A0331

#1A0331 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.3% C 0.086 H 301.6°. Best body text is #FFFFFF at 19.07:1 contrast (WCAG AA passes).

Color values

HEX#1A0331
RGBrgb(26, 3, 49)
HSLhsl(270, 88%, 10%)
HSVhsv(270, 94%, 19%)
CMYKcmyk(46.9%, 93.9%, 0%, 80.8%)
CIE-LABlab(4.58, 21.34, -24.59)
CIE-LCHlch(4.58, 32.56, 310.95°)
OKLaboklab(18.29% 0.0453 -0.0735)
OKLCHoklch(18.29% 0.086 301.6)
XYZxyz(1.0128, 0.5065, 2.9495)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0331 #1A3103
analogous
#030331 #1A0331 #310331
triadic
#1A0331 #311A03 #03311A
tetradic
#1A0331 #310303 #1A3103 #033131
square
#1A0331 #310303 #1A3103 #033131
split-complementary
#1A0331 #313103 #033103
monochromatic
#0F021D #0F021D #1A0331 #39076B #570AA4

Accessibility & contrast

On white

19.07
#1A0331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#1A0331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0331
19.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0331#FFFFFF#000000##FFFFFF
##1A03311.0019.071.1019.07
#FFFFFF19.071.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F32
Deuteranopia (green-blind)
#000F30
Tritanopia (blue-blind)
#150E19
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1a0331;
/* rgb */ color: rgb(26, 3, 49);
/* oklch */ color: oklch(18.3% 0.086 301.6);
Tailwind
colors: {
  custom: {
    50: '#594769',
    500: '#1a0331',
    950: '#000000',
  },
}
SCSS
$custom: #1a0331;
$custom-light: #594769;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0331",
  "rgb": {
    "r": 26,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 270,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18287,
    "c": 0.08633,
    "h": 301.6
  },
  "luminance": 0.00506
}

Semantic roles & 50–950 ramp

primary
#1A0331
secondary
#48741B
accent
#FF2994
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1A0331

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

Preview Lab → · Contrast checker → · Palette generator →

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