#1F0C41#1F0C41

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

Color values

HEX#1F0C41
RGBrgb(31, 12, 65)
HSLhsl(262, 69%, 15%)
HSVhsv(262, 82%, 25%)
CMYKcmyk(52.3%, 81.5%, 0%, 74.5%)
CIE-LABlab(8.45, 24.11, -29.92)
CIE-LCHlch(8.45, 38.42, 308.86°)
OKLaboklab(22.15% 0.0376 -0.0857)
OKLCHoklch(22.15% 0.094 293.7)
XYZxyz(1.6504, 0.9359, 5.0937)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0C41 #2E410C
analogous
#0C1441 #1F0C41 #390C41
triadic
#1F0C41 #411F0C #0C411F
tetradic
#1F0C41 #410C14 #2E410C #0C4139
square
#1F0C41 #410C14 #2E410C #0C4139
split-complementary
#1F0C41 #41390C #14410C
monochromatic
#0C051A #0C051A #1F0C41 #381675 #501FA8

Accessibility & contrast

On white

17.69
#1F0C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0C41
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0C41#FFFFFF#000000##FFFFFF
##1F0C411.0017.691.1917.69
#FFFFFF17.691.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001740
Tritanopia (blue-blind)
#151A25
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0c41;
/* rgb */ color: rgb(31, 12, 65);
/* oklch */ color: oklch(22.1% 0.094 293.7);
Tailwind
colors: {
  custom: {
    50: '#5f4c76',
    500: '#1f0c41',
    950: '#000000',
  },
}
SCSS
$custom: #1f0c41;
$custom-light: #5f4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0c41",
  "rgb": {
    "r": 31,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 261.509,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22145,
    "c": 0.09361,
    "h": 293.7
  },
  "luminance": 0.00936
}

Semantic roles & 50–950 ramp

primary
#1F0C41
secondary
#607D2C
accent
#EC3CAD
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0C41

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

Preview Lab → · Contrast checker → · Palette generator →

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