#1B0947#1B0947

#1B0947 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.105 H 287.4°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#1B0947
RGBrgb(27, 9, 71)
HSLhsl(257, 78%, 16%)
HSVhsv(257, 87%, 28%)
CMYKcmyk(62%, 87.3%, 0%, 72.2%)
CIE-LABlab(7.98, 27.06, -34.94)
CIE-LCHlch(7.98, 44.20, 307.76°)
OKLaboklab(21.9% 0.0315 -0.1006)
OKLCHoklch(21.9% 0.105 287.4)
XYZxyz(1.6867, 0.8832, 6.0416)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0947 #354709
analogous
#091647 #1B0947 #3A0947
triadic
#1B0947 #471B09 #09471B
tetradic
#1B0947 #470916 #354709 #09473A
square
#1B0947 #470916 #354709 #09473A
split-complementary
#1B0947 #473A09 #164709
monochromatic
#0A031B #0A031B #1B0947 #30107D #4417B4

Accessibility & contrast

On white

17.85
#1B0947 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1B0947 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0947
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0947#FFFFFF#000000##FFFFFF
##1B09471.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b0947;
/* rgb */ color: rgb(27, 9, 71);
/* oklch */ color: oklch(21.9% 0.105 287.4);
Tailwind
colors: {
  custom: {
    50: '#5e4b7b',
    500: '#1b0947',
    950: '#000000',
  },
}
SCSS
$custom: #1b0947;
$custom-light: #5e4b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0947",
  "rgb": {
    "r": 27,
    "g": 9,
    "b": 71
  },
  "hsl": {
    "h": 257.419,
    "s": 77.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.21895,
    "c": 0.10539,
    "h": 287.4
  },
  "luminance": 0.00883
}

Semantic roles & 50–950 ramp

primary
#1B0947
secondary
#698427
accent
#F434BC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1B0947

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

Preview Lab → · Contrast checker → · Palette generator →

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