#1F0D3F#1F0D3F

#1F0D3F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.089 H 294.4°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#1F0D3F
RGBrgb(31, 13, 63)
HSLhsl(262, 66%, 15%)
HSVhsv(262, 79%, 25%)
CMYKcmyk(50.8%, 79.4%, 0%, 75.3%)
CIE-LABlab(8.46, 22.86, -28.46)
CIE-LCHlch(8.46, 36.50, 308.76°)
OKLaboklab(22.1% 0.0369 -0.0815)
OKLCHoklch(22.1% 0.089 294.4)
XYZxyz(1.6060, 0.9380, 4.7981)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D3F #2D3F0D
analogous
#0D143F #1F0D3F #380D3F
triadic
#1F0D3F #3F1F0D #0D3F1F
tetradic
#1F0D3F #3F0D14 #2D3F0D #0D3F38
square
#1F0D3F #3F0D14 #2D3F0D #0D3F38
split-complementary
#1F0D3F #3F380D #143F0D
monochromatic
#0C0519 #0C0519 #1F0D3F #381772 #5122A4

Accessibility & contrast

On white

17.68
#1F0D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1F0D3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0D3F
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D3F#FFFFFF#000000##FFFFFF
##1F0D3F1.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001940
Deuteranopia (green-blind)
#00183E
Tritanopia (blue-blind)
#161924
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0d3f;
/* rgb */ color: rgb(31, 13, 63);
/* oklch */ color: oklch(22.1% 0.089 294.4);
Tailwind
colors: {
  custom: {
    50: '#5e4d74',
    500: '#1f0d3f',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d3f;
$custom-light: #5e4d74;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d3f",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 63
  },
  "hsl": {
    "h": 261.6,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22097,
    "c": 0.08944,
    "h": 294.4
  },
  "luminance": 0.00938
}

Semantic roles & 50–950 ramp

primary
#1F0D3F
secondary
#5F7B2D
accent
#E93FAC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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