#1B0840#1B0840

#1B0840 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.097 H 291.0°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#1B0840
RGBrgb(27, 8, 64)
HSLhsl(260, 78%, 14%)
HSVhsv(260, 88%, 25%)
CMYKcmyk(57.8%, 87.5%, 0%, 74.9%)
CIE-LABlab(7.02, 25.19, -31.56)
CIE-LCHlch(7.02, 40.39, 308.60°)
OKLaboklab(20.95% 0.0349 -0.0909)
OKLCHoklch(20.95% 0.097 291)
XYZxyz(1.4640, 0.7768, 4.9223)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0840 #2D4008
analogous
#081140 #1B0840 #370840
triadic
#1B0840 #401B08 #08401B
tetradic
#1B0840 #400811 #2D4008 #084037
square
#1B0840 #400811 #2D4008 #084037
split-complementary
#1B0840 #403708 #114008
monochromatic
#0B031B #0B031B #1B0840 #320F76 #4916AD

Accessibility & contrast

On white

18.18
#1B0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1B0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0840
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0840#FFFFFF#000000##FFFFFF
##1B08401.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#0E1824
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1b0840;
/* rgb */ color: rgb(27, 8, 64);
/* oklch */ color: oklch(21.0% 0.097 291.0);
Tailwind
colors: {
  custom: {
    50: '#5d4a75',
    500: '#1b0840',
    950: '#000000',
  },
}
SCSS
$custom: #1b0840;
$custom-light: #5d4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0840",
  "rgb": {
    "r": 27,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 260.357,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20953,
    "c": 0.09737,
    "h": 291
  },
  "luminance": 0.00777
}

Semantic roles & 50–950 ramp

primary
#1B0840
secondary
#607E25
accent
#F434B3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #1B0840

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

Preview Lab → · Contrast checker → · Palette generator →

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