#1B0847#1B0847

#1B0847 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.107 H 287.7°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#1B0847
RGBrgb(27, 8, 71)
HSLhsl(258, 80%, 15%)
HSVhsv(258, 89%, 28%)
CMYKcmyk(62%, 88.7%, 0%, 72.2%)
CIE-LABlab(7.78, 27.63, -35.26)
CIE-LCHlch(7.78, 44.80, 308.08°)
OKLaboklab(21.76% 0.0323 -0.1015)
OKLCHoklch(21.76% 0.107 287.7)
XYZxyz(1.6758, 0.8615, 6.0380)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0847 #344708
analogous
#081447 #1B0847 #3A0847
triadic
#1B0847 #471B08 #08471B
tetradic
#1B0847 #470814 #344708 #08473A
square
#1B0847 #470814 #344708 #08473A
split-complementary
#1B0847 #473A08 #144708
monochromatic
#0A031C #0A031C #1B0847 #300E7E #4514B5

Accessibility & contrast

On white

17.91
#1B0847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0847
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0847#FFFFFF#000000##FFFFFF
##1B08471.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001849
Deuteranopia (green-blind)
#001546
Tritanopia (blue-blind)
#081B28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1b0847;
/* rgb */ color: rgb(27, 8, 71);
/* oklch */ color: oklch(21.8% 0.107 287.7);
Tailwind
colors: {
  custom: {
    50: '#5e4a7b',
    500: '#1b0847',
    950: '#000000',
  },
}
SCSS
$custom: #1b0847;
$custom-light: #5e4a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0847",
  "rgb": {
    "r": 27,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 258.095,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.21758,
    "c": 0.10654,
    "h": 287.7
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#1B0847
secondary
#688526
accent
#F632BB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1B0847

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

Preview Lab → · Contrast checker → · Palette generator →

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