#1F0333#1F0333

#1F0333 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.090 H 306.5°. Best body text is #FFFFFF at 18.77:1 contrast (WCAG AA passes).

Color values

HEX#1F0333
RGBrgb(31, 3, 51)
HSLhsl(275, 89%, 11%)
HSVhsv(275, 94%, 20%)
CMYKcmyk(39.2%, 94.1%, 0%, 80%)
CIE-LABlab(5.38, 24.11, -24.75)
CIE-LCHlch(5.38, 34.56, 314.25°)
OKLaboklab(19.3% 0.0535 -0.0722)
OKLCHoklch(19.3% 0.09 306.5)
XYZxyz(1.1950, 0.5955, 3.1833)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0333 #173303
analogous
#070333 #1F0333 #33032F
triadic
#1F0333 #331F03 #03331F
tetradic
#1F0333 #330703 #173303 #032F33
square
#1F0333 #330703 #173303 #032F33
split-complementary
#1F0333 #2F3303 #033307
monochromatic
#12021D #12021D #1F0333 #42066D #650AA7

Accessibility & contrast

On white

18.77
#1F0333 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0333
18.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0333#FFFFFF#000000##FFFFFF
##1F03331.0018.771.1218.77
#FFFFFF18.771.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001134
Deuteranopia (green-blind)
#001232
Tritanopia (blue-blind)
#1B0F1B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f0333;
/* rgb */ color: rgb(31, 3, 51);
/* oklch */ color: oklch(19.3% 0.090 306.5);
Tailwind
colors: {
  custom: {
    50: '#5d476b',
    500: '#1f0333',
    950: '#000000',
  },
}
SCSS
$custom: #1f0333;
$custom-light: #5d476b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0333",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 51
  },
  "hsl": {
    "h": 275,
    "s": 88.889,
    "l": 10.588
  },
  "oklch": {
    "l": 0.19304,
    "c": 0.0899,
    "h": 306.5
  },
  "luminance": 0.00595
}

Semantic roles & 50–950 ramp

primary
#1F0333
secondary
#41761C
accent
#FF2982
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F0333

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

Preview Lab → · Contrast checker → · Palette generator →

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