#1F0F41#1F0F41

#1F0F41 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.089 H 292.5°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#1F0F41
RGBrgb(31, 15, 65)
HSLhsl(259, 63%, 16%)
HSVhsv(259, 77%, 25%)
CMYKcmyk(52.3%, 76.9%, 0%, 74.5%)
CIE-LABlab(9.11, 22.25, -28.83)
CIE-LCHlch(9.11, 36.42, 307.67°)
OKLaboklab(22.62% 0.0341 -0.0825)
OKLCHoklch(22.62% 0.089 292.5)
XYZxyz(1.6898, 1.0146, 5.1068)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F41 #31410F
analogous
#0F1841 #1F0F41 #380F41
triadic
#1F0F41 #411F0F #0F411F
tetradic
#1F0F41 #410F18 #31410F #0F4138
square
#1F0F41 #410F18 #31410F #0F4138
split-complementary
#1F0F41 #41380F #18410F
monochromatic
#0C0619 #0C0619 #1F0F41 #371A73 #4E26A4

Accessibility & contrast

On white

17.46
#1F0F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1F0F41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F41
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F41#FFFFFF#000000##FFFFFF
##1F0F411.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#001940
Tritanopia (blue-blind)
#151B26
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f0f41;
/* rgb */ color: rgb(31, 15, 65);
/* oklch */ color: oklch(22.6% 0.089 292.5);
Tailwind
colors: {
  custom: {
    50: '#5f4e76',
    500: '#1f0f41',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f41;
$custom-light: #5f4e76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f41",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 65
  },
  "hsl": {
    "h": 259.2,
    "s": 62.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.2262,
    "c": 0.08932,
    "h": 292.5
  },
  "luminance": 0.01015
}

Semantic roles & 50–950 ramp

primary
#1F0F41
secondary
#637B30
accent
#E642B1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0F41

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

Preview Lab → · Contrast checker → · Palette generator →

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