#1B0332#1B0332

#1B0332 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.6% C 0.088 H 302.2°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#1B0332
RGBrgb(27, 3, 50)
HSLhsl(271, 89%, 10%)
HSVhsv(271, 94%, 20%)
CMYKcmyk(46%, 94%, 0%, 80.4%)
CIE-LABlab(4.77, 22.17, -25.01)
CIE-LCHlch(4.77, 33.43, 311.56°)
OKLaboklab(18.55% 0.0467 -0.0743)
OKLCHoklch(18.55% 0.088 302.2)
XYZxyz(1.0601, 0.5284, 3.0631)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0332 #1A3203
analogous
#030332 #1B0332 #320331
triadic
#1B0332 #321B03 #03321B
tetradic
#1B0332 #320303 #1A3203 #033132
square
#1B0332 #320303 #1A3203 #033132
split-complementary
#1B0332 #313203 #033203
monochromatic
#10021D #10021D #1B0332 #3A066C #590AA5

Accessibility & contrast

On white

18.99
#1B0332 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B0332
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0332#FFFFFF#000000##FFFFFF
##1B03321.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001033
Deuteranopia (green-blind)
#001031
Tritanopia (blue-blind)
#160F1A
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1b0332;
/* rgb */ color: rgb(27, 3, 50);
/* oklch */ color: oklch(18.6% 0.088 302.2);
Tailwind
colors: {
  custom: {
    50: '#5a476a',
    500: '#1b0332',
    950: '#000000',
  },
}
SCSS
$custom: #1b0332;
$custom-light: #5a476a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0332",
  "rgb": {
    "r": 27,
    "g": 3,
    "b": 50
  },
  "hsl": {
    "h": 270.638,
    "s": 88.679,
    "l": 10.392
  },
  "oklch": {
    "l": 0.18554,
    "c": 0.08774,
    "h": 302.2
  },
  "luminance": 0.00528
}

Semantic roles & 50–950 ramp

primary
#1B0332
secondary
#47751B
accent
#FF2992
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1B0332

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

Preview Lab → · Contrast checker → · Palette generator →

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