#1B0841#1B0841

#1B0841 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.099 H 290.5°. Best body text is #FFFFFF at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#1B0841
RGBrgb(27, 8, 65)
HSLhsl(260, 78%, 14%)
HSVhsv(260, 88%, 25%)
CMYKcmyk(58.5%, 87.7%, 0%, 74.5%)
CIE-LABlab(7.12, 25.55, -32.11)
CIE-LCHlch(7.12, 41.03, 308.52°)
OKLaboklab(21.07% 0.0345 -0.0924)
OKLCHoklch(21.07% 0.099 290.5)
XYZxyz(1.4927, 0.7883, 5.0735)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0841 #2E4108
analogous
#081241 #1B0841 #380841
triadic
#1B0841 #411B08 #08411B
tetradic
#1B0841 #410812 #2E4108 #084138
square
#1B0841 #410812 #2E4108 #084138
split-complementary
#1B0841 #413808 #124108
monochromatic
#0B031B #0B031B #1B0841 #320F77 #4815AE

Accessibility & contrast

On white

18.14
#1B0841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0841
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0841#FFFFFF#000000##FFFFFF
##1B08411.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001743
Deuteranopia (green-blind)
#001440
Tritanopia (blue-blind)
#0D1824
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1b0841;
/* rgb */ color: rgb(27, 8, 65);
/* oklch */ color: oklch(21.1% 0.099 290.5);
Tailwind
colors: {
  custom: {
    50: '#5d4a76',
    500: '#1b0841',
    950: '#000000',
  },
}
SCSS
$custom: #1b0841;
$custom-light: #5d4a76;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0841",
  "rgb": {
    "r": 27,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 260,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21066,
    "c": 0.09868,
    "h": 290.5
  },
  "luminance": 0.00788
}

Semantic roles & 50–950 ramp

primary
#1B0841
secondary
#617F25
accent
#F533B4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #1B0841

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

Preview Lab → · Contrast checker → · Palette generator →

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