#1F0E46#1F0E46

#1F0E46 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.098 H 290.5°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#1F0E46
RGBrgb(31, 14, 70)
HSLhsl(258, 67%, 16%)
HSVhsv(258, 80%, 27%)
CMYKcmyk(55.7%, 80%, 0%, 72.5%)
CIE-LABlab(9.38, 24.54, -31.92)
CIE-LCHlch(9.38, 40.26, 307.56°)
OKLaboklab(22.97% 0.0342 -0.0916)
OKLCHoklch(22.97% 0.098 290.5)
XYZxyz(1.8273, 1.0475, 5.8991)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E46 #35460E
analogous
#0E1946 #1F0E46 #3B0E46
triadic
#1F0E46 #461F0E #0E461F
tetradic
#1F0E46 #460E19 #35460E #0E463B
square
#1F0E46 #460E19 #35460E #0E463B
split-complementary
#1F0E46 #463B0E #19460E
monochromatic
#0B051A #0B051A #1F0E46 #361879 #4C22AC

Accessibility & contrast

On white

17.36
#1F0E46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1F0E46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0E46
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E46#FFFFFF#000000##FFFFFF
##1F0E461.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001945
Tritanopia (blue-blind)
#121D29
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f0e46;
/* rgb */ color: rgb(31, 14, 70);
/* oklch */ color: oklch(23.0% 0.098 290.5);
Tailwind
colors: {
  custom: {
    50: '#604e7a',
    500: '#1f0e46',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e46;
$custom-light: #604e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e46",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 70
  },
  "hsl": {
    "h": 258.214,
    "s": 66.667,
    "l": 16.471
  },
  "oklch": {
    "l": 0.22966,
    "c": 0.09778,
    "h": 290.5
  },
  "luminance": 0.01048
}

Semantic roles & 50–950 ramp

primary
#1F0E46
secondary
#68812F
accent
#EA3EB6
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0E46

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

Preview Lab → · Contrast checker → · Palette generator →

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