#1B0128#1B0128

#1B0128 is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 17.1% C 0.081 H 312.3°. Best body text is #FFFFFF at 19.42:1 contrast (WCAG AA passes).

Color values

HEX#1B0128
RGBrgb(27, 1, 40)
HSLhsl(280, 95%, 8%)
HSVhsv(280, 98%, 16%)
CMYKcmyk(32.5%, 97.5%, 0%, 84.3%)
CIE-LABlab(3.68, 18.77, -19.19)
CIE-LCHlch(3.68, 26.84, 314.36°)
OKLaboklab(17.07% 0.0546 -0.0601)
OKLCHoklch(17.07% 0.081 312.3)
XYZxyz(0.8458, 0.4079, 2.0413)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0128 #0E2801
analogous
#070128 #1B0128 #280121
triadic
#1B0128 #281B01 #01281B
tetradic
#1B0128 #280701 #0E2801 #012128
square
#1B0128 #280701 #0E2801 #012128
split-complementary
#1B0128 #212801 #012807
monochromatic
#14011E #14011E #1B0128 #430264 #6C049F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B0128#FFFFFF#000000##FFFFFF
##1B01281.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)
#000C29
Deuteranopia (green-blind)
#000E27
Tritanopia (blue-blind)
#190813
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1b0128;
/* rgb */ color: rgb(27, 1, 40);
/* oklch */ color: oklch(17.1% 0.081 312.3);
Tailwind
colors: {
  custom: {
    50: '#574662',
    500: '#1b0128',
    950: '#000000',
  },
}
SCSS
$custom: #1b0128;
$custom-light: #574662;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0128",
  "rgb": {
    "r": 27,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 280,
    "s": 95.122,
    "l": 8.039
  },
  "oklch": {
    "l": 0.17071,
    "c": 0.08118,
    "h": 312.3
  },
  "luminance": 0.00408
}

Semantic roles & 50–950 ramp

primary
#1B0128
secondary
#346F16
accent
#FF2970
background
#F5F3F5
surface
#E9E5EA
border
#C5C1C6
text
#030005
muted
#787779

Preview Lab

Preview with #1B0128

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

Preview Lab → · Contrast checker → · Palette generator →

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