#1B0336#1B0336

#1B0336 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.092 H 299.1°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#1B0336
RGBrgb(27, 3, 54)
HSLhsl(268, 89%, 11%)
HSVhsv(268, 94%, 21%)
CMYKcmyk(50%, 94.4%, 0%, 78.8%)
CIE-LABlab(5.10, 23.85, -27.44)
CIE-LCHlch(5.10, 36.36, 310.99°)
OKLaboklab(19% 0.045 -0.0808)
OKLCHoklch(19% 0.092 299.1)
XYZxyz(1.1502, 0.5645, 3.5377)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0336 #1E3603
analogous
#030436 #1B0336 #340336
triadic
#1B0336 #361B03 #03361B
tetradic
#1B0336 #360304 #1E3603 #033634
square
#1B0336 #360304 #1E3603 #033634
split-complementary
#1B0336 #363403 #043603
monochromatic
#0E021D #0E021D #1B0336 #380670 #5509AA

Accessibility & contrast

On white

18.87
#1B0336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1B0336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0336
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0336#FFFFFF#000000##FFFFFF
##1B03361.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001137
Deuteranopia (green-blind)
#001135
Tritanopia (blue-blind)
#14111C
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1b0336;
/* rgb */ color: rgb(27, 3, 54);
/* oklch */ color: oklch(19.0% 0.092 299.1);
Tailwind
colors: {
  custom: {
    50: '#5a476d',
    500: '#1b0336',
    950: '#000000',
  },
}
SCSS
$custom: #1b0336;
$custom-light: #5a476d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0336",
  "rgb": {
    "r": 27,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 268.235,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.19001,
    "c": 0.09246,
    "h": 299.1
  },
  "luminance": 0.00564
}

Semantic roles & 50–950 ramp

primary
#1B0336
secondary
#4D791C
accent
#FF299A
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1B0336

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

Preview Lab → · Contrast checker → · Palette generator →

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