#1F0F4F#1F0F4F

#1F0F4F is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.109 H 286.4°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#1F0F4F
RGBrgb(31, 15, 79)
HSLhsl(255, 68%, 18%)
HSVhsv(255, 81%, 31%)
CMYKcmyk(60.8%, 81%, 0%, 69%)
CIE-LABlab(10.54, 26.95, -36.28)
CIE-LCHlch(10.54, 45.19, 306.61°)
OKLaboklab(24.07% 0.0308 -0.1044)
OKLCHoklch(24.07% 0.109 286.4)
XYZxyz(2.1468, 1.1973, 7.5136)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F4F #3F4F0F
analogous
#0F1F4F #1F0F4F #3F0F4F
triadic
#1F0F4F #4F1F0F #0F4F1F
tetradic
#1F0F4F #4F0F1F #3F4F0F #0F4F3F
square
#1F0F4F #4F0F1F #3F4F0F #0F4F3F
split-complementary
#1F0F4F #4F3F0F #1F4F0F
monochromatic
#0A051A #0B051C #1F0F4F #331982 #4723B6

Accessibility & contrast

On white

16.94
#1F0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#1F0F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F4F
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F4F#FFFFFF#000000##FFFFFF
##1F0F4F1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#001B4E
Tritanopia (blue-blind)
#09212E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1f0f4f;
/* rgb */ color: rgb(31, 15, 79);
/* oklch */ color: oklch(24.1% 0.109 286.4);
Tailwind
colors: {
  custom: {
    50: '#614f81',
    500: '#1f0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f4f;
$custom-light: #614f81;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f4f",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 255,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24073,
    "c": 0.10885,
    "h": 286.4
  },
  "luminance": 0.01197
}

Semantic roles & 50–950 ramp

primary
#1F0F4F
secondary
#738931
accent
#EB3DBF
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #1F0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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