#1B0A42#1B0A42

#1B0A42 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.5% C 0.098 H 289.3°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#1B0A42
RGBrgb(27, 10, 66)
HSLhsl(258, 74%, 15%)
HSVhsv(258, 85%, 26%)
CMYKcmyk(59.1%, 84.8%, 0%, 74.1%)
CIE-LABlab(7.62, 24.82, -32.00)
CIE-LCHlch(7.62, 40.50, 307.79°)
OKLaboklab(21.47% 0.0323 -0.092)
OKLCHoklch(21.47% 0.098 289.3)
XYZxyz(1.5436, 0.8434, 5.2347)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0A42 #31420A
analogous
#0A1542 #1B0A42 #370A42
triadic
#1B0A42 #421B0A #0A421B
tetradic
#1B0A42 #420A15 #31420A #0A4237
square
#1B0A42 #420A15 #31420A #0A4237
split-complementary
#1B0A42 #42370A #15420A
monochromatic
#0B041B #0B041B #1B0A42 #311277 #461AAC

Accessibility & contrast

On white

17.97
#1B0A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1B0A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0A42
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0A42#FFFFFF#000000##FFFFFF
##1B0A421.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#0C1925
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1b0a42;
/* rgb */ color: rgb(27, 10, 66);
/* oklch */ color: oklch(21.5% 0.098 289.3);
Tailwind
colors: {
  custom: {
    50: '#5d4b77',
    500: '#1b0a42',
    950: '#000000',
  },
}
SCSS
$custom: #1b0a42;
$custom-light: #5d4b77;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0a42",
  "rgb": {
    "r": 27,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 258.214,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21468,
    "c": 0.09751,
    "h": 289.3
  },
  "luminance": 0.00843
}

Semantic roles & 50–950 ramp

primary
#1B0A42
secondary
#657F29
accent
#F037B8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #1B0A42

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

Preview Lab → · Contrast checker → · Palette generator →

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