#1F082E#1F082E

#1F082E is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.7% C 0.074 H 308.9°. Best body text is #FFFFFF at 18.54:1 contrast (WCAG AA passes).

Color values

HEX#1F082E
RGBrgb(31, 8, 46)
HSLhsl(276, 70%, 11%)
HSVhsv(276, 83%, 18%)
CMYKcmyk(32.6%, 82.6%, 0%, 82%)
CIE-LABlab(5.98, 19.87, -20.07)
CIE-LCHlch(5.98, 28.24, 314.71°)
OKLaboklab(19.69% 0.0467 -0.0578)
OKLCHoklch(19.69% 0.074 308.9)
XYZxyz(1.1449, 0.6622, 2.6517)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F082E #172E08
analogous
#0C082E #1F082E #2E082A
triadic
#1F082E #2E1F08 #082E1F
tetradic
#1F082E #2E0C08 #172E08 #082A2E
square
#1F082E #2E0C08 #172E08 #082A2E
split-complementary
#1F082E #2A2E08 #082E0C
monochromatic
#12051A #12051A #1F082E #421162 #651A96

Accessibility & contrast

On white

18.54
#1F082E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F082E
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F082E#FFFFFF#000000##FFFFFF
##1F082E1.0018.541.1318.54
#FFFFFF18.541.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122F
Deuteranopia (green-blind)
#03142D
Tritanopia (blue-blind)
#1D101A
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f082e;
/* rgb */ color: rgb(31, 8, 46);
/* oklch */ color: oklch(19.7% 0.074 308.9);
Tailwind
colors: {
  custom: {
    50: '#5c4a67',
    500: '#1f082e',
    950: '#000000',
  },
}
SCSS
$custom: #1f082e;
$custom-light: #5c4a67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f082e",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 46
  },
  "hsl": {
    "h": 276.316,
    "s": 70.37,
    "l": 10.588
  },
  "oklch": {
    "l": 0.1969,
    "c": 0.07426,
    "h": 308.9
  },
  "luminance": 0.00662
}

Semantic roles & 50–950 ramp

primary
#1F082E
secondary
#416D25
accent
#ED3B81
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F082E

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

Preview Lab → · Contrast checker → · Palette generator →

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