#1F0F4D#1F0F4D

#1F0F4D is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.106 H 287.2°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#1F0F4D
RGBrgb(31, 15, 77)
HSLhsl(255, 67%, 18%)
HSVhsv(255, 81%, 30%)
CMYKcmyk(59.7%, 80.5%, 0%, 69.8%)
CIE-LABlab(10.32, 26.28, -35.25)
CIE-LCHlch(10.32, 43.97, 306.70°)
OKLaboklab(23.86% 0.0314 -0.1014)
OKLCHoklch(23.86% 0.106 287.2)
XYZxyz(2.0751, 1.1687, 7.1360)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F4D #3D4D0F
analogous
#0F1E4D #1F0F4D #3E0F4D
triadic
#1F0F4D #4D1F0F #0F4D1F
tetradic
#1F0F4D #4D0F1E #3D4D0F #0F4D3E
square
#1F0F4D #4D0F1E #3D4D0F #0F4D3E
split-complementary
#1F0F4D #4D3E0F #1E4D0F
monochromatic
#0A051A #0A051A #1F0F4D #341980 #4823B3

Accessibility & contrast

On white

17.02
#1F0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1F0F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F4D
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F4D#FFFFFF#000000##FFFFFF
##1F0F4D1.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001A4C
Tritanopia (blue-blind)
#0C202D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f0f4d;
/* rgb */ color: rgb(31, 15, 77);
/* oklch */ color: oklch(23.9% 0.106 287.2);
Tailwind
colors: {
  custom: {
    50: '#614f7f',
    500: '#1f0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f4d;
$custom-light: #614f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f4d",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 255.484,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23857,
    "c": 0.10612,
    "h": 287.2
  },
  "luminance": 0.01169
}

Semantic roles & 50–950 ramp

primary
#1F0F4D
secondary
#718731
accent
#EA3EBE
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #1F0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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