#1F0A34#1F0A34

#1F0A34 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.6% C 0.079 H 302.9°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#1F0A34
RGBrgb(31, 10, 52)
HSLhsl(270, 68%, 12%)
HSVhsv(270, 81%, 20%)
CMYKcmyk(40.4%, 80.8%, 0%, 79.6%)
CIE-LABlab(6.83, 20.96, -23.15)
CIE-LCHlch(6.83, 31.23, 312.15°)
OKLaboklab(20.56% 0.0428 -0.0661)
OKLCHoklch(20.56% 0.079 302.9)
XYZxyz(1.2933, 0.7563, 3.3260)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0A34 #1F340A
analogous
#0A0A34 #1F0A34 #340A34
triadic
#1F0A34 #341F0A #0A341F
tetradic
#1F0A34 #340A0A #1F340A #0A3434
square
#1F0A34 #340A0A #1F340A #0A3434
split-complementary
#1F0A34 #34340A #0A340A
monochromatic
#0F051A #0F051A #1F0A34 #3E1467 #5C1E9B

Accessibility & contrast

On white

18.24
#1F0A34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0A34
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0A34#FFFFFF#000000##FFFFFF
##1F0A341.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0a34;
/* rgb */ color: rgb(31, 10, 52);
/* oklch */ color: oklch(20.6% 0.079 302.9);
Tailwind
colors: {
  custom: {
    50: '#5d4b6c',
    500: '#1f0a34',
    950: '#000000',
  },
}
SCSS
$custom: #1f0a34;
$custom-light: #5d4b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0a34",
  "rgb": {
    "r": 31,
    "g": 10,
    "b": 52
  },
  "hsl": {
    "h": 270,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20563,
    "c": 0.07881,
    "h": 302.9
  },
  "luminance": 0.00756
}

Semantic roles & 50–950 ramp

primary
#1F0A34
secondary
#4D7128
accent
#EB3D94
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0A34

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

Preview Lab → · Contrast checker → · Palette generator →

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