#1F0E4F#1F0E4F

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

Color values

HEX#1F0E4F
RGBrgb(31, 14, 79)
HSLhsl(256, 70%, 18%)
HSVhsv(256, 82%, 31%)
CMYKcmyk(60.8%, 82.3%, 0%, 69%)
CIE-LABlab(10.33, 27.53, -36.62)
CIE-LCHlch(10.33, 45.81, 306.94°)
OKLaboklab(23.93% 0.0317 -0.1054)
OKLCHoklch(23.93% 0.11 286.7)
XYZxyz(2.1330, 1.1698, 7.5090)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E4F #3E4F0E
analogous
#0E1D4F #1F0E4F #3F0E4F
triadic
#1F0E4F #4F1F0E #0E4F1F
tetradic
#1F0E4F #4F0E1D #3E4F0E #0E4F3F
square
#1F0E4F #4F0E1D #3E4F0E #0E4F3F
split-complementary
#1F0E4F #4F3F0E #1D4F0E
monochromatic
#0A051A #0B051B #1F0E4F #331783 #4820B7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F0E4F#FFFFFF#000000##FFFFFF
##1F0E4F1.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)
#001E51
Deuteranopia (green-blind)
#001A4E
Tritanopia (blue-blind)
#0A202E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f0e4f;
/* rgb */ color: rgb(31, 14, 79);
/* oklch */ color: oklch(23.9% 0.110 286.7);
Tailwind
colors: {
  custom: {
    50: '#614e81',
    500: '#1f0e4f',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e4f;
$custom-light: #614e81;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e4f",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 79
  },
  "hsl": {
    "h": 255.692,
    "s": 69.892,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23928,
    "c": 0.11004,
    "h": 286.7
  },
  "luminance": 0.0117
}

Semantic roles & 50–950 ramp

primary
#1F0E4F
secondary
#728A2F
accent
#ED3BBE
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #1F0E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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