#1F032E#1F032E

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

Color values

HEX#1F032E
RGBrgb(31, 3, 46)
HSLhsl(279, 88%, 10%)
HSVhsv(279, 93%, 18%)
CMYKcmyk(32.6%, 93.5%, 0%, 82%)
CIE-LABlab(5.00, 22.25, -21.63)
CIE-LCHlch(5.00, 31.03, 315.81°)
OKLaboklab(18.8% 0.0552 -0.0637)
OKLCHoklch(18.8% 0.084 310.9)
XYZxyz(1.0907, 0.5537, 2.6337)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F032E #122E03
analogous
#0A032E #1F032E #2E0328
triadic
#1F032E #2E1F03 #032E1F
tetradic
#1F032E #2E0A03 #122E03 #03282E
square
#1F032E #2E0A03 #122E03 #03282E
split-complementary
#1F032E #282E03 #032E0A
monochromatic
#13021D #13021D #1F032E #460767 #6C0AA1

Accessibility & contrast

On white

18.91
#1F032E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1F032E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F032E
18.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F032E#FFFFFF#000000##FFFFFF
##1F032E1.0018.911.1118.91
#FFFFFF18.911.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f032e;
/* rgb */ color: rgb(31, 3, 46);
/* oklch */ color: oklch(18.8% 0.084 310.9);
Tailwind
colors: {
  custom: {
    50: '#5c4767',
    500: '#1f032e',
    950: '#000000',
  },
}
SCSS
$custom: #1f032e;
$custom-light: #5c4767;
$custom-dark: #000000;
JSON
{
  "hex": "#1f032e",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 46
  },
  "hsl": {
    "h": 279.07,
    "s": 87.755,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18798,
    "c": 0.0843,
    "h": 310.9
  },
  "luminance": 0.00554
}

Semantic roles & 50–950 ramp

primary
#1F032E
secondary
#39721B
accent
#FE2A74
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F032E

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

Preview Lab → · Contrast checker → · Palette generator →

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