#1B002B#1B002B

#1B002B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.2% C 0.087 H 309.8°. Best body text is #FFFFFF at 19.42:1 contrast (WCAG AA passes).

Color values

HEX#1B002B
RGBrgb(27, 0, 43)
HSLhsl(278, 100%, 8%)
HSVhsv(278, 100%, 17%)
CMYKcmyk(37.2%, 100%, 0%, 83.1%)
CIE-LABlab(3.68, 20.48, -21.49)
CIE-LCHlch(3.68, 29.69, 313.62°)
OKLaboklab(17.17% 0.0556 -0.0668)
OKLCHoklch(17.17% 0.087 309.8)
XYZxyz(0.8880, 0.4074, 2.3169)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B002B #102B00
analogous
#05002B #1B002B #2B0025
triadic
#1B002B #2B1B00 #002B1B
tetradic
#1B002B #2B0500 #102B00 #00252B
square
#1B002B #2B0500 #102B00 #00252B
split-complementary
#1B002B #252B00 #002B05
monochromatic
#13001F #13001F #1B002B #410068 #6800A5

Accessibility & contrast

On white

19.42
#1B002B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#1B002B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B002B
19.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B002B#FFFFFF#000000##FFFFFF
##1B002B1.0019.421.0819.42
#FFFFFF19.421.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2C
Deuteranopia (green-blind)
#000E2A
Tritanopia (blue-blind)
#190915
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1b002b;
/* rgb */ color: rgb(27, 0, 43);
/* oklch */ color: oklch(17.2% 0.087 309.8);
Tailwind
colors: {
  custom: {
    50: '#584664',
    500: '#1b002b',
    950: '#000000',
  },
}
SCSS
$custom: #1b002b;
$custom-light: #584664;
$custom-dark: #000000;
JSON
{
  "hex": "#1b002b",
  "rgb": {
    "r": 27,
    "g": 0,
    "b": 43
  },
  "hsl": {
    "h": 277.674,
    "s": 100,
    "l": 8.431
  },
  "oklch": {
    "l": 0.17165,
    "c": 0.08692,
    "h": 309.8
  },
  "luminance": 0.00407
}

Semantic roles & 50–950 ramp

primary
#1B002B
secondary
#377314
accent
#FF2979
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030005
muted
#78777A

Preview Lab

Preview with #1B002B

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

Preview Lab → · Contrast checker → · Palette generator →

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