#1F0934#1F0934

#1F0934 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.080 H 303.3°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#1F0934
RGBrgb(31, 9, 52)
HSLhsl(271, 70%, 12%)
HSVhsv(271, 83%, 20%)
CMYKcmyk(40.4%, 82.7%, 0%, 79.6%)
CIE-LABlab(6.64, 21.47, -23.47)
CIE-LCHlch(6.64, 31.81, 312.45°)
OKLaboklab(20.41% 0.0442 -0.0672)
OKLCHoklch(20.41% 0.08 303.3)
XYZxyz(1.2825, 0.7346, 3.3224)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0934 #1E3409
analogous
#0A0934 #1F0934 #340934
triadic
#1F0934 #341F09 #09341F
tetradic
#1F0934 #340A09 #1E3409 #093434
square
#1F0934 #340A09 #1E3409 #093434
split-complementary
#1F0934 #343409 #09340A
monochromatic
#10051A #10051A #1F0934 #3E1268 #5D1B9C

Accessibility & contrast

On white

18.31
#1F0934 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1F0934 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0934
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0934#FFFFFF#000000##FFFFFF
##1F09341.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001435
Deuteranopia (green-blind)
#001533
Tritanopia (blue-blind)
#1B131D
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f0934;
/* rgb */ color: rgb(31, 9, 52);
/* oklch */ color: oklch(20.4% 0.080 303.3);
Tailwind
colors: {
  custom: {
    50: '#5d4a6c',
    500: '#1f0934',
    950: '#000000',
  },
}
SCSS
$custom: #1f0934;
$custom-light: #5d4a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0934",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 52
  },
  "hsl": {
    "h": 270.698,
    "s": 70.492,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20406,
    "c": 0.08042,
    "h": 303.3
  },
  "luminance": 0.00735
}

Semantic roles & 50–950 ramp

primary
#1F0934
secondary
#4C7227
accent
#ED3B92
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0934

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

Preview Lab → · Contrast checker → · Palette generator →

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