#1B0837#1B0837

#1B0837 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.085 H 296.3°. Best body text is #FFFFFF at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#1B0837
RGBrgb(27, 8, 55)
HSLhsl(264, 75%, 12%)
HSVhsv(264, 85%, 22%)
CMYKcmyk(50.9%, 85.5%, 0%, 78.4%)
CIE-LABlab(6.17, 21.79, -26.45)
CIE-LCHlch(6.17, 34.27, 309.48°)
OKLaboklab(19.98% 0.0377 -0.0765)
OKLCHoklch(19.98% 0.085 296.3)
XYZxyz(1.2282, 0.6825, 3.6807)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0837 #243708
analogous
#080D37 #1B0837 #320837
triadic
#1B0837 #371B08 #08371B
tetradic
#1B0837 #37080D #243708 #083732
square
#1B0837 #37080D #243708 #083732
split-complementary
#1B0837 #373208 #0D3708
monochromatic
#0D041B #0D041B #1B0837 #35106C #4F18A2

Accessibility & contrast

On white

18.48
#1B0837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1B0837 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0837
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0837#FFFFFF#000000##FFFFFF
##1B08371.0018.481.1418.48
#FFFFFF18.481.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001438
Deuteranopia (green-blind)
#001336
Tritanopia (blue-blind)
#13141F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1b0837;
/* rgb */ color: rgb(27, 8, 55);
/* oklch */ color: oklch(20.0% 0.085 296.3);
Tailwind
colors: {
  custom: {
    50: '#5b496e',
    500: '#1b0837',
    950: '#000000',
  },
}
SCSS
$custom: #1b0837;
$custom-light: #5b496e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0837",
  "rgb": {
    "r": 27,
    "g": 8,
    "b": 55
  },
  "hsl": {
    "h": 264.255,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.19975,
    "c": 0.08531,
    "h": 296.3
  },
  "luminance": 0.00683
}

Semantic roles & 50–950 ramp

primary
#1B0837
secondary
#557625
accent
#F137A6
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #1B0837

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

Preview Lab → · Contrast checker → · Palette generator →

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