#1F0332#1F0332

#1F0332 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.089 H 307.4°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#1F0332
RGBrgb(31, 3, 50)
HSLhsl(276, 89%, 10%)
HSVhsv(276, 94%, 20%)
CMYKcmyk(38%, 94%, 0%, 80.4%)
CIE-LABlab(5.30, 23.74, -24.14)
CIE-LCHlch(5.30, 33.86, 314.53°)
OKLaboklab(19.2% 0.0539 -0.0706)
OKLCHoklch(19.2% 0.089 307.4)
XYZxyz(1.1732, 0.5867, 3.0684)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0332 #163203
analogous
#080332 #1F0332 #32032D
triadic
#1F0332 #321F03 #03321F
tetradic
#1F0332 #320803 #163203 #032D32
square
#1F0332 #320803 #163203 #032D32
split-complementary
#1F0332 #2D3203 #033208
monochromatic
#12021D #12021D #1F0332 #43066C #670AA5

Accessibility & contrast

On white

18.79
#1F0332 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0332
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0332#FFFFFF#000000##FFFFFF
##1F03321.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001133
Deuteranopia (green-blind)
#001231
Tritanopia (blue-blind)
#1C0E1A
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f0332;
/* rgb */ color: rgb(31, 3, 50);
/* oklch */ color: oklch(19.2% 0.089 307.4);
Tailwind
colors: {
  custom: {
    50: '#5d476a',
    500: '#1f0332',
    950: '#000000',
  },
}
SCSS
$custom: #1f0332;
$custom-light: #5d476a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0332",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 50
  },
  "hsl": {
    "h": 275.745,
    "s": 88.679,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19201,
    "c": 0.08878,
    "h": 307.4
  },
  "luminance": 0.00587
}

Semantic roles & 50–950 ramp

primary
#1F0332
secondary
#40751B
accent
#FF297F
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F0332

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

Preview Lab → · Contrast checker → · Palette generator →

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