#1B072F#1B072F

#1B072F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.076 H 302.7°. Best body text is #FFFFFF at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#1B072F
RGBrgb(27, 7, 47)
HSLhsl(270, 74%, 11%)
HSVhsv(270, 85%, 18%)
CMYKcmyk(42.6%, 85.1%, 0%, 81.6%)
CIE-LABlab(5.33, 19.09, -21.89)
CIE-LCHlch(5.33, 29.04, 311.10°)
OKLaboklab(18.99% 0.0412 -0.0641)
OKLCHoklch(18.99% 0.076 302.7)
XYZxyz(1.0409, 0.5902, 2.7479)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B072F #1B2F07
analogous
#07072F #1B072F #2F072F
triadic
#1B072F #2F1B07 #072F1B
tetradic
#1B072F #2F0707 #1B2F07 #072F2F
square
#1B072F #2F0707 #1B2F07 #072F2F
split-complementary
#1B072F #2F2F07 #072F07
monochromatic
#0F041B #0F041B #1B072F #3A0F64 #58179A

Accessibility & contrast

On white

18.78
#1B072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1B072F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B072F
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B072F#FFFFFF#000000##FFFFFF
##1B072F1.0018.781.1218.78
#FFFFFF18.781.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#00122E
Tritanopia (blue-blind)
#17101A
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1b072f;
/* rgb */ color: rgb(27, 7, 47);
/* oklch */ color: oklch(19.0% 0.076 302.7);
Tailwind
colors: {
  custom: {
    50: '#594968',
    500: '#1b072f',
    950: '#000000',
  },
}
SCSS
$custom: #1b072f;
$custom-light: #594968;
$custom-dark: #000000;
JSON
{
  "hex": "#1b072f",
  "rgb": {
    "r": 27,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 270,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.1899,
    "c": 0.0762,
    "h": 302.7
  },
  "luminance": 0.0059
}

Semantic roles & 50–950 ramp

primary
#1B072F
secondary
#496F23
accent
#F13794
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1B072F

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

Preview Lab → · Contrast checker → · Palette generator →

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