#1F0C4D#1F0C4D

#1F0C4D is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.110 H 288.1°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#1F0C4D
RGBrgb(31, 12, 77)
HSLhsl(258, 73%, 17%)
HSVhsv(258, 84%, 30%)
CMYKcmyk(59.7%, 84.4%, 0%, 69.8%)
CIE-LABlab(9.72, 27.99, -36.24)
CIE-LCHlch(9.72, 45.79, 307.68°)
OKLaboklab(23.43% 0.034 -0.1043)
OKLCHoklch(23.43% 0.11 288.1)
XYZxyz(2.0357, 1.0900, 7.1229)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0C4D #3A4D0C
analogous
#0C1A4D #1F0C4D #3F0C4D
triadic
#1F0C4D #4D1F0C #0C4D1F
tetradic
#1F0C4D #4D0C1A #3A4D0C #0C4D3F
square
#1F0C4D #4D0C1A #3A4D0C #0C4D3F
split-complementary
#1F0C4D #4D3F0C #1A4D0C
monochromatic
#0B041A #0B041A #1F0C4D #341482 #4A1DB7

Accessibility & contrast

On white

17.24
#1F0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#1F0C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0C4D
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0C4D#FFFFFF#000000##FFFFFF
##1F0C4D1.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4F
Deuteranopia (green-blind)
#00194C
Tritanopia (blue-blind)
#0C1E2C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0c4d;
/* rgb */ color: rgb(31, 12, 77);
/* oklch */ color: oklch(23.4% 0.110 288.1);
Tailwind
colors: {
  custom: {
    50: '#614d80',
    500: '#1f0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #1f0c4d;
$custom-light: #614d80;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0c4d",
  "rgb": {
    "r": 31,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 257.538,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23432,
    "c": 0.10968,
    "h": 288.1
  },
  "luminance": 0.0109
}

Semantic roles & 50–950 ramp

primary
#1F0C4D
secondary
#6E892C
accent
#F038BA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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