#1F082C#1F082C

#1F082C is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.5% C 0.072 H 310.9°. Best body text is #FFFFFF at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#1F082C
RGBrgb(31, 8, 44)
HSLhsl(278, 69%, 10%)
HSVhsv(278, 82%, 17%)
CMYKcmyk(29.5%, 81.8%, 0%, 82.7%)
CIE-LABlab(5.84, 19.17, -18.80)
CIE-LCHlch(5.84, 26.85, 315.56°)
OKLaboklab(19.51% 0.0469 -0.0542)
OKLCHoklch(19.51% 0.072 310.9)
XYZxyz(1.1064, 0.6468, 2.4490)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F082C #152C08
analogous
#0D082C #1F082C #2C0827
triadic
#1F082C #2C1F08 #082C1F
tetradic
#1F082C #2C0D08 #152C08 #08272C
square
#1F082C #2C0D08 #152C08 #08272C
split-complementary
#1F082C #272C08 #082C0D
monochromatic
#12051A #12051A #1F082C #431160 #681B94

Accessibility & contrast

On white

18.59
#1F082C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F082C
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F082C#FFFFFF#000000##FFFFFF
##1F082C1.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#05132B
Tritanopia (blue-blind)
#1D0F18
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f082c;
/* rgb */ color: rgb(31, 8, 44);
/* oklch */ color: oklch(19.5% 0.072 310.9);
Tailwind
colors: {
  custom: {
    50: '#5c4a65',
    500: '#1f082c',
    950: '#000000',
  },
}
SCSS
$custom: #1f082c;
$custom-light: #5c4a65;
$custom-dark: #000000;
JSON
{
  "hex": "#1f082c",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 44
  },
  "hsl": {
    "h": 278.333,
    "s": 69.231,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19514,
    "c": 0.07166,
    "h": 310.9
  },
  "luminance": 0.00647
}

Semantic roles & 50–950 ramp

primary
#1F082C
secondary
#3E6B25
accent
#EC3C7B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #1F082C

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

Preview Lab → · Contrast checker → · Palette generator →

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