#1F042E#1F042E

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

Color values

HEX#1F042E
RGBrgb(31, 4, 46)
HSLhsl(279, 84%, 10%)
HSVhsv(279, 91%, 18%)
CMYKcmyk(32.6%, 91.3%, 0%, 82%)
CIE-LABlab(5.20, 21.78, -21.32)
CIE-LCHlch(5.20, 30.48, 315.61°)
OKLaboklab(18.98% 0.0534 -0.0625)
OKLCHoklch(18.98% 0.082 310.5)
XYZxyz(1.1015, 0.5754, 2.6373)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F042E #132E04
analogous
#0A042E #1F042E #2E0428
triadic
#1F042E #2E1F04 #042E1F
tetradic
#1F042E #2E0A04 #132E04 #04282E
square
#1F042E #2E0A04 #132E04 #04282E
split-complementary
#1F042E #282E04 #042E0A
monochromatic
#13021C #13021C #1F042E #450966 #6B0E9F

Accessibility & contrast

On white

18.83
#1F042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F042E
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F042E#FFFFFF#000000##FFFFFF
##1F042E1.0018.831.1218.83
#FFFFFF18.831.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102F
Deuteranopia (green-blind)
#00122D
Tritanopia (blue-blind)
#1D0D18
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1f042e;
/* rgb */ color: rgb(31, 4, 46);
/* oklch */ color: oklch(19.0% 0.082 310.5);
Tailwind
colors: {
  custom: {
    50: '#5c4867',
    500: '#1f042e',
    950: '#000000',
  },
}
SCSS
$custom: #1f042e;
$custom-light: #5c4867;
$custom-dark: #000000;
JSON
{
  "hex": "#1f042e",
  "rgb": {
    "r": 31,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 278.571,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18983,
    "c": 0.08218,
    "h": 310.5
  },
  "luminance": 0.00575
}

Semantic roles & 50–950 ramp

primary
#1F042E
secondary
#3B711D
accent
#FA2E77
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F042E

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

Preview Lab → · Contrast checker → · Palette generator →

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