#1B072B#1B072B

#1B072B is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.6% C 0.071 H 306.3°. Best body text is #FFFFFF at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#1B072B
RGBrgb(27, 7, 43)
HSLhsl(273, 72%, 10%)
HSVhsv(273, 84%, 17%)
CMYKcmyk(37.2%, 83.7%, 0%, 83.1%)
CIE-LABlab(5.05, 17.48, -19.32)
CIE-LCHlch(5.05, 26.06, 312.13°)
OKLaboklab(18.61% 0.0419 -0.0571)
OKLCHoklch(18.61% 0.071 306.3)
XYZxyz(0.9639, 0.5594, 2.3422)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B072B #172B07
analogous
#09072B #1B072B #2B0729
triadic
#1B072B #2B1B07 #072B1B
tetradic
#1B072B #2B0907 #172B07 #07292B
square
#1B072B #2B0907 #172B07 #07292B
split-complementary
#1B072B #292B07 #072B09
monochromatic
#11041A #11041A #1B072B #3C1060 #5D1894

Accessibility & contrast

On white

18.89
#1B072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B072B
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B072B#FFFFFF#000000##FFFFFF
##1B072B1.0018.891.1118.89
#FFFFFF18.891.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102C
Deuteranopia (green-blind)
#01112A
Tritanopia (blue-blind)
#180F18
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1b072b;
/* rgb */ color: rgb(27, 7, 43);
/* oklch */ color: oklch(18.6% 0.071 306.3);
Tailwind
colors: {
  custom: {
    50: '#584964',
    500: '#1b072b',
    950: '#000000',
  },
}
SCSS
$custom: #1b072b;
$custom-light: #584964;
$custom-dark: #000000;
JSON
{
  "hex": "#1b072b",
  "rgb": {
    "r": 27,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 273.333,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18609,
    "c": 0.07081,
    "h": 306.3
  },
  "luminance": 0.00559
}

Semantic roles & 50–950 ramp

primary
#1B072B
secondary
#436B23
accent
#EF398A
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030105
muted
#78777A

Preview Lab

Preview with #1B072B

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

Preview Lab → · Contrast checker → · Palette generator →

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