#1F0A35#1F0A35

#1F0A35 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.7% C 0.080 H 302.2°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#1F0A35
RGBrgb(31, 10, 53)
HSLhsl(269, 68%, 12%)
HSVhsv(269, 81%, 21%)
CMYKcmyk(41.5%, 81.1%, 0%, 79.2%)
CIE-LABlab(6.91, 21.30, -23.76)
CIE-LCHlch(6.91, 31.91, 311.88°)
OKLaboklab(20.66% 0.0427 -0.0679)
OKLCHoklch(20.66% 0.08 302.2)
XYZxyz(1.3161, 0.7654, 3.4459)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0A35 #20350A
analogous
#0A0B35 #1F0A35 #350A35
triadic
#1F0A35 #351F0A #0A351F
tetradic
#1F0A35 #350A0B #20350A #0A3535
square
#1F0A35 #350A0B #20350A #0A3535
split-complementary
#1F0A35 #35350A #0B350A
monochromatic
#0F051A #0F051A #1F0A35 #3D1468 #5B1D9C

Accessibility & contrast

On white

18.21
#1F0A35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0A35
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0A35#FFFFFF#000000##FFFFFF
##1F0A351.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001536
Deuteranopia (green-blind)
#001534
Tritanopia (blue-blind)
#1A141E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f0a35;
/* rgb */ color: rgb(31, 10, 53);
/* oklch */ color: oklch(20.7% 0.080 302.2);
Tailwind
colors: {
  custom: {
    50: '#5d4b6c',
    500: '#1f0a35',
    950: '#000000',
  },
}
SCSS
$custom: #1f0a35;
$custom-light: #5d4b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0a35",
  "rgb": {
    "r": 31,
    "g": 10,
    "b": 53
  },
  "hsl": {
    "h": 269.302,
    "s": 68.254,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20657,
    "c": 0.08017,
    "h": 302.2
  },
  "luminance": 0.00765
}

Semantic roles & 50–950 ramp

primary
#1F0A35
secondary
#4E7228
accent
#EB3D96
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0A35

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

Preview Lab → · Contrast checker → · Palette generator →

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