#1F0733#1F0733

#1F0733 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.083 H 304.9°. Best body text is #FFFFFF at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#1F0733
RGBrgb(31, 7, 51)
HSLhsl(273, 76%, 11%)
HSVhsv(273, 86%, 20%)
CMYKcmyk(39.2%, 86.3%, 0%, 80%)
CIE-LABlab(6.16, 22.13, -23.49)
CIE-LCHlch(6.16, 32.27, 313.28°)
OKLaboklab(19.99% 0.0473 -0.0676)
OKLCHoklch(19.99% 0.083 304.9)
XYZxyz(1.2385, 0.6823, 3.1978)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0733 #1B3307
analogous
#090733 #1F0733 #330731
triadic
#1F0733 #331F07 #07331F
tetradic
#1F0733 #330907 #1B3307 #073133
square
#1F0733 #330907 #1B3307 #073133
split-complementary
#1F0733 #313307 #073309
monochromatic
#10041B #10041B #1F0733 #400E69 #60169F

Accessibility & contrast

On white

18.48
#1F0733 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1F0733 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0733
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0733#FFFFFF#000000##FFFFFF
##1F07331.0018.481.1418.48
#FFFFFF18.481.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001334
Deuteranopia (green-blind)
#001432
Tritanopia (blue-blind)
#1B111C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0733;
/* rgb */ color: rgb(31, 7, 51);
/* oklch */ color: oklch(20.0% 0.083 304.9);
Tailwind
colors: {
  custom: {
    50: '#5d496b',
    500: '#1f0733',
    950: '#000000',
  },
}
SCSS
$custom: #1f0733;
$custom-light: #5d496b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0733",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 51
  },
  "hsl": {
    "h": 272.727,
    "s": 75.862,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19988,
    "c": 0.08251,
    "h": 304.9
  },
  "luminance": 0.00682
}

Semantic roles & 50–950 ramp

primary
#1F0733
secondary
#477323
accent
#F2358B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F0733

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

Preview Lab → · Contrast checker → · Palette generator →

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