#1F032F#1F032F

#1F032F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.085 H 310.0°. Best body text is #FFFFFF at 18.88:1 contrast (WCAG AA passes).

Color values

HEX#1F032F
RGBrgb(31, 3, 47)
HSLhsl(278, 88%, 10%)
HSVhsv(278, 94%, 18%)
CMYKcmyk(34%, 93.6%, 0%, 81.6%)
CIE-LABlab(5.07, 22.62, -22.27)
CIE-LCHlch(5.07, 31.74, 315.46°)
OKLaboklab(18.9% 0.0549 -0.0654)
OKLCHoklch(18.9% 0.085 310)
XYZxyz(1.1106, 0.5617, 2.7387)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F032F #132F03
analogous
#09032F #1F032F #2F0329
triadic
#1F032F #2F1F03 #032F1F
tetradic
#1F032F #2F0903 #132F03 #03292F
square
#1F032F #2F0903 #132F03 #03292F
split-complementary
#1F032F #292F03 #032F09
monochromatic
#13021D #13021D #1F032F #450769 #6B0AA2

Accessibility & contrast

On white

18.88
#1F032F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F032F
18.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F032F#FFFFFF#000000##FFFFFF
##1F032F1.0018.881.1118.88
#FFFFFF18.881.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#1D0D18
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1f032f;
/* rgb */ color: rgb(31, 3, 47);
/* oklch */ color: oklch(18.9% 0.085 310.0);
Tailwind
colors: {
  custom: {
    50: '#5c4768',
    500: '#1f032f',
    950: '#000000',
  },
}
SCSS
$custom: #1f032f;
$custom-light: #5c4768;
$custom-dark: #000000;
JSON
{
  "hex": "#1f032f",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 47
  },
  "hsl": {
    "h": 278.182,
    "s": 88,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18897,
    "c": 0.08543,
    "h": 310
  },
  "luminance": 0.00562
}

Semantic roles & 50–950 ramp

primary
#1F032F
secondary
#3B731B
accent
#FE2A77
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F032F

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

Preview Lab → · Contrast checker → · Palette generator →

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