#1A0128#1A0128

#1A0128 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.9% C 0.081 H 310.9°. Best body text is #FFFFFF at 19.46:1 contrast (WCAG AA passes).

Color values

HEX#1A0128
RGBrgb(26, 1, 40)
HSLhsl(278, 95%, 8%)
HSVhsv(278, 98%, 16%)
CMYKcmyk(35%, 97.5%, 0%, 84.3%)
CIE-LABlab(3.56, 18.22, -19.39)
CIE-LCHlch(3.56, 26.61, 313.22°)
OKLaboklab(16.89% 0.0529 -0.0611)
OKLCHoklch(16.89% 0.081 310.9)
XYZxyz(0.8198, 0.3945, 2.0400)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0128 #0F2801
analogous
#070128 #1A0128 #280122
triadic
#1A0128 #281A01 #01281A
tetradic
#1A0128 #280701 #0F2801 #012228
square
#1A0128 #280701 #0F2801 #012228
split-complementary
#1A0128 #222801 #012807
monochromatic
#13011E #13011E #1A0128 #410264 #68049F

Accessibility & contrast

On white

19.46
#1A0128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#1A0128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0128
19.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0128#FFFFFF#000000##FFFFFF
##1A01281.0019.461.0819.46
#FFFFFF19.461.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C29
Deuteranopia (green-blind)
#000D27
Tritanopia (blue-blind)
#180913
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1a0128;
/* rgb */ color: rgb(26, 1, 40);
/* oklch */ color: oklch(16.9% 0.081 310.9);
Tailwind
colors: {
  custom: {
    50: '#574662',
    500: '#1a0128',
    950: '#000000',
  },
}
SCSS
$custom: #1a0128;
$custom-light: #574662;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0128",
  "rgb": {
    "r": 26,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 278.462,
    "s": 95.122,
    "l": 8.039
  },
  "oklch": {
    "l": 0.16888,
    "c": 0.08083,
    "h": 310.9
  },
  "luminance": 0.00395
}

Semantic roles & 50–950 ramp

primary
#1A0128
secondary
#366F16
accent
#FF2976
background
#F5F3F5
surface
#E9E5EA
border
#C5C1C6
text
#030005
muted
#787779

Preview Lab

Preview with #1A0128

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

Preview Lab → · Contrast checker → · Palette generator →

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