#1B0023#1B0023

#1B0023 is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 16.3% C 0.079 H 318.2°. Best body text is #FFFFFF at 19.61:1 contrast (WCAG AA passes).

Color values

HEX#1B0023
RGBrgb(27, 0, 35)
HSLhsl(286, 100%, 7%)
HSVhsv(286, 100%, 14%)
CMYKcmyk(22.9%, 100%, 0%, 86.3%)
CIE-LABlab(3.20, 17.14, -16.07)
CIE-LCHlch(3.20, 23.50, 316.85°)
OKLaboklab(16.33% 0.059 -0.0527)
OKLCHoklch(16.33% 0.079 318.2)
XYZxyz(0.7553, 0.3544, 1.6184)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0023 #082300
analogous
#0A0023 #1B0023 #23001A
triadic
#1B0023 #231B00 #00231B
tetradic
#1B0023 #230A00 #082300 #001A23
square
#1B0023 #230A00 #082300 #001A23
split-complementary
#1B0023 #1A2300 #00230A
monochromatic
#18001F #18001F #1B0023 #4A0060 #79009D

Accessibility & contrast

On white

19.61
#1B0023 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#1B0023 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0023
19.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0023#FFFFFF#000000##FFFFFF
##1B00231.0019.611.0719.61
#FFFFFF19.611.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A24
Deuteranopia (green-blind)
#010D22
Tritanopia (blue-blind)
#1B0510
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #1b0023;
/* rgb */ color: rgb(27, 0, 35);
/* oklch */ color: oklch(16.3% 0.079 318.2);
Tailwind
colors: {
  custom: {
    50: '#57465e',
    500: '#1b0023',
    950: '#000000',
  },
}
SCSS
$custom: #1b0023;
$custom-light: #57465e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0023",
  "rgb": {
    "r": 27,
    "g": 0,
    "b": 35
  },
  "hsl": {
    "h": 286.286,
    "s": 100,
    "l": 6.863
  },
  "oklch": {
    "l": 0.16327,
    "c": 0.07909,
    "h": 318.2
  },
  "luminance": 0.00354
}

Semantic roles & 50–950 ramp

primary
#1B0023
secondary
#276C13
accent
#FF295A
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#030004
muted
#787779

Preview Lab

Preview with #1B0023

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

Preview Lab → · Contrast checker → · Palette generator →

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