#1B082F#1B082F

#1B082F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.074 H 302.2°. Best body text is #FFFFFF at 18.71:1 contrast (WCAG AA passes).

Color values

HEX#1B082F
RGBrgb(27, 8, 47)
HSLhsl(269, 71%, 11%)
HSVhsv(269, 83%, 18%)
CMYKcmyk(42.6%, 83%, 0%, 81.6%)
CIE-LABlab(5.53, 18.63, -21.57)
CIE-LCHlch(5.53, 28.51, 310.81°)
OKLaboklab(19.17% 0.0396 -0.0629)
OKLCHoklch(19.17% 0.074 302.2)
XYZxyz(1.0518, 0.6119, 2.7515)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B082F #1C2F08
analogous
#08082F #1B082F #2E082F
triadic
#1B082F #2F1B08 #082F1B
tetradic
#1B082F #2F0808 #1C2F08 #082F2E
square
#1B082F #2F0808 #1C2F08 #082F2E
split-complementary
#1B082F #2F2E08 #082F08
monochromatic
#0F041A #0F041A #1B082F #391163 #571A98

Accessibility & contrast

On white

18.71
#1B082F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B082F
18.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B082F#FFFFFF#000000##FFFFFF
##1B082F1.0018.711.1218.71
#FFFFFF18.711.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b082f;
/* rgb */ color: rgb(27, 8, 47);
/* oklch */ color: oklch(19.2% 0.074 302.2);
Tailwind
colors: {
  custom: {
    50: '#594a68',
    500: '#1b082f',
    950: '#000000',
  },
}
SCSS
$custom: #1b082f;
$custom-light: #594a68;
$custom-dark: #000000;
JSON
{
  "hex": "#1b082f",
  "rgb": {
    "r": 27,
    "g": 8,
    "b": 47
  },
  "hsl": {
    "h": 269.231,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.19171,
    "c": 0.07435,
    "h": 302.2
  },
  "luminance": 0.00612
}

Semantic roles & 50–950 ramp

primary
#1B082F
secondary
#4A6E25
accent
#EE3A96
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1B082F

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

Preview Lab → · Contrast checker → · Palette generator →

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