#1F0E42#1F0E42

#1F0E42 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.092 H 292.4°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#1F0E42
RGBrgb(31, 14, 66)
HSLhsl(260, 65%, 16%)
HSVhsv(260, 79%, 26%)
CMYKcmyk(53%, 78.8%, 0%, 74.1%)
CIE-LABlab(8.98, 23.22, -29.75)
CIE-LCHlch(8.98, 37.74, 307.97°)
OKLaboklab(22.56% 0.0351 -0.0853)
OKLCHoklch(22.56% 0.092 292.4)
XYZxyz(1.7052, 0.9987, 5.2561)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E42 #31420E
analogous
#0E1742 #1F0E42 #390E42
triadic
#1F0E42 #421F0E #0E421F
tetradic
#1F0E42 #420E17 #31420E #0E4239
square
#1F0E42 #420E17 #31420E #0E4239
split-complementary
#1F0E42 #42390E #17420E
monochromatic
#0C0519 #0C0519 #1F0E42 #371974 #4E23A7

Accessibility & contrast

On white

17.50
#1F0E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E42
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E42#FFFFFF#000000##FFFFFF
##1F0E421.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001841
Tritanopia (blue-blind)
#141B26
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f0e42;
/* rgb */ color: rgb(31, 14, 66);
/* oklch */ color: oklch(22.6% 0.092 292.4);
Tailwind
colors: {
  custom: {
    50: '#5f4e77',
    500: '#1f0e42',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e42;
$custom-light: #5f4e77;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e42",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 66
  },
  "hsl": {
    "h": 259.615,
    "s": 65,
    "l": 15.686
  },
  "oklch": {
    "l": 0.22556,
    "c": 0.0922,
    "h": 292.4
  },
  "luminance": 0.00999
}

Semantic roles & 50–950 ramp

primary
#1F0E42
secondary
#637D2F
accent
#E840B1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0E42

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

Preview Lab → · Contrast checker → · Palette generator →

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