#1F0D50#1F0D50

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

Color values

HEX#1F0D50
RGBrgb(31, 13, 80)
HSLhsl(256, 72%, 18%)
HSVhsv(256, 84%, 31%)
CMYKcmyk(61.2%, 83.7%, 0%, 68.6%)
CIE-LABlab(10.25, 28.42, -37.45)
CIE-LCHlch(10.25, 47.01, 307.20°)
OKLaboklab(23.9% 0.0322 -0.1078)
OKLCHoklch(23.9% 0.113 286.7)
XYZxyz(2.1565, 1.1582, 7.6978)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D50 #3E500D
analogous
#0D1C50 #1F0D50 #400D50
triadic
#1F0D50 #501F0D #0D501F
tetradic
#1F0D50 #500D1C #3E500D #0D5040
square
#1F0D50 #500D1C #3E500D #0D5040
split-complementary
#1F0D50 #50400D #1C500D
monochromatic
#0A041A #0B041B #1F0D50 #331685 #481EB9

Accessibility & contrast

On white

17.05
#1F0D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0D50
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D50#FFFFFF#000000##FFFFFF
##1F0D501.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E52
Deuteranopia (green-blind)
#001A4F
Tritanopia (blue-blind)
#08202E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f0d50;
/* rgb */ color: rgb(31, 13, 80);
/* oklch */ color: oklch(23.9% 0.113 286.7);
Tailwind
colors: {
  custom: {
    50: '#624e82',
    500: '#1f0d50',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d50;
$custom-light: #624e82;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d50",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 80
  },
  "hsl": {
    "h": 256.119,
    "s": 72.043,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23901,
    "c": 0.11252,
    "h": 286.7
  },
  "luminance": 0.01158
}

Semantic roles & 50–950 ramp

primary
#1F0D50
secondary
#728B2E
accent
#EF39BE
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F0D50

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

Preview Lab → · Contrast checker → · Palette generator →

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