#1F0E40#1F0E40

#1F0E40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.4% C 0.089 H 293.4°. Best body text is #FFFFFF at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#1F0E40
RGBrgb(31, 14, 64)
HSLhsl(260, 64%, 15%)
HSVhsv(260, 78%, 25%)
CMYKcmyk(51.6%, 78.1%, 0%, 74.9%)
CIE-LABlab(8.79, 22.56, -28.65)
CIE-LCHlch(8.79, 36.47, 308.22°)
OKLaboklab(22.36% 0.0355 -0.082)
OKLCHoklch(22.36% 0.089 293.4)
XYZxyz(1.6473, 0.9755, 4.9510)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E40 #2F400E
analogous
#0E1640 #1F0E40 #380E40
triadic
#1F0E40 #401F0E #0E401F
tetradic
#1F0E40 #400E16 #2F400E #0E4038
square
#1F0E40 #400E16 #2F400E #0E4038
split-complementary
#1F0E40 #40380E #16400E
monochromatic
#0C0519 #0C0519 #1F0E40 #371972 #5024A4

Accessibility & contrast

On white

17.57
#1F0E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1F0E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0E40
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E40#FFFFFF#000000##FFFFFF
##1F0E401.0017.571.2017.57
#FFFFFF17.571.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#151A25
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f0e40;
/* rgb */ color: rgb(31, 14, 64);
/* oklch */ color: oklch(22.4% 0.089 293.4);
Tailwind
colors: {
  custom: {
    50: '#5e4e75',
    500: '#1f0e40',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e40;
$custom-light: #5e4e75;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e40",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 64
  },
  "hsl": {
    "h": 260.4,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22357,
    "c": 0.08938,
    "h": 293.4
  },
  "luminance": 0.00976
}

Semantic roles & 50–950 ramp

primary
#1F0E40
secondary
#617B2F
accent
#E741AF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0E40

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

Preview Lab → · Contrast checker → · Palette generator →

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