#1F082B#1F082B

#1F082B is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.070 H 311.9°. Best body text is #FFFFFF at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#1F082B
RGBrgb(31, 8, 43)
HSLhsl(279, 69%, 10%)
HSVhsv(279, 81%, 17%)
CMYKcmyk(27.9%, 81.4%, 0%, 83.1%)
CIE-LABlab(5.78, 18.82, -18.15)
CIE-LCHlch(5.78, 26.15, 316.04°)
OKLaboklab(19.43% 0.047 -0.0524)
OKLCHoklch(19.43% 0.07 311.9)
XYZxyz(1.0879, 0.6394, 2.3511)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F082B #142B08
analogous
#0E082B #1F082B #2B0825
triadic
#1F082B #2B1F08 #082B1F
tetradic
#1F082B #2B0E08 #142B08 #08252B
square
#1F082B #2B0E08 #142B08 #08252B
split-complementary
#1F082B #252B08 #082B0E
monochromatic
#13051A #13051A #1F082B #44125F #691B92

Accessibility & contrast

On white

18.62
#1F082B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1F082B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F082B
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F082B#FFFFFF#000000##FFFFFF
##1F082B1.0018.621.1318.62
#FFFFFF18.621.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122C
Deuteranopia (green-blind)
#05132A
Tritanopia (blue-blind)
#1E0F18
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f082b;
/* rgb */ color: rgb(31, 8, 43);
/* oklch */ color: oklch(19.4% 0.070 311.9);
Tailwind
colors: {
  custom: {
    50: '#5c4a64',
    500: '#1f082b',
    950: '#000000',
  },
}
SCSS
$custom: #1f082b;
$custom-light: #5c4a64;
$custom-dark: #000000;
JSON
{
  "hex": "#1f082b",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 43
  },
  "hsl": {
    "h": 279.429,
    "s": 68.627,
    "l": 10
  },
  "oklch": {
    "l": 0.19427,
    "c": 0.07035,
    "h": 311.9
  },
  "luminance": 0.00639
}

Semantic roles & 50–950 ramp

primary
#1F082B
secondary
#3D6A25
accent
#EB3C78
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #1F082B

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

Preview Lab → · Contrast checker → · Palette generator →

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