#1F0D40#1F0D40

#1F0D40 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.2% C 0.091 H 293.8°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#1F0D40
RGBrgb(31, 13, 64)
HSLhsl(261, 66%, 15%)
HSVhsv(261, 80%, 25%)
CMYKcmyk(51.6%, 79.7%, 0%, 74.9%)
CIE-LABlab(8.56, 23.18, -29.02)
CIE-LCHlch(8.56, 37.14, 308.62°)
OKLaboklab(22.2% 0.0367 -0.0831)
OKLCHoklch(22.2% 0.091 293.8)
XYZxyz(1.6342, 0.9493, 4.9466)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D40 #2E400D
analogous
#0D1540 #1F0D40 #380D40
triadic
#1F0D40 #401F0D #0D401F
tetradic
#1F0D40 #400D15 #2E400D #0D4038
square
#1F0D40 #400D15 #2E400D #0D4038
split-complementary
#1F0D40 #40380D #15400D
monochromatic
#0C0519 #0C0519 #1F0D40 #381773 #5022A6

Accessibility & contrast

On white

17.65
#1F0D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0D40
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D40#FFFFFF#000000##FFFFFF
##1F0D401.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#151A25
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f0d40;
/* rgb */ color: rgb(31, 13, 64);
/* oklch */ color: oklch(22.2% 0.091 293.8);
Tailwind
colors: {
  custom: {
    50: '#5f4d75',
    500: '#1f0d40',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d40;
$custom-light: #5f4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d40",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 261.176,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22197,
    "c": 0.09084,
    "h": 293.8
  },
  "luminance": 0.00949
}

Semantic roles & 50–950 ramp

primary
#1F0D40
secondary
#607C2D
accent
#E93FAD
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0D40

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

Preview Lab → · Contrast checker → · Palette generator →

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