#1F0E48#1F0E48

#1F0E48 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.101 H 289.6°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#1F0E48
RGBrgb(31, 14, 72)
HSLhsl(258, 67%, 17%)
HSVhsv(258, 81%, 28%)
CMYKcmyk(56.9%, 80.6%, 0%, 71.8%)
CIE-LABlab(9.59, 25.21, -32.98)
CIE-LCHlch(9.59, 41.51, 307.39°)
OKLaboklab(23.18% 0.0337 -0.0947)
OKLCHoklch(23.18% 0.101 289.6)
XYZxyz(1.8915, 1.0732, 6.2371)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E48 #37480E
analogous
#0E1A48 #1F0E48 #3C0E48
triadic
#1F0E48 #481F0E #0E481F
tetradic
#1F0E48 #480E1A #37480E #0E483C
square
#1F0E48 #480E1A #37480E #0E483C
split-complementary
#1F0E48 #483C0E #1A480E
monochromatic
#0B051A #0B051A #1F0E48 #35187B #4B22AE

Accessibility & contrast

On white

17.29
#1F0E48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E48
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E48#FFFFFF#000000##FFFFFF
##1F0E481.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001947
Tritanopia (blue-blind)
#101D2A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0e48;
/* rgb */ color: rgb(31, 14, 72);
/* oklch */ color: oklch(23.2% 0.101 289.6);
Tailwind
colors: {
  custom: {
    50: '#604e7c',
    500: '#1f0e48',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e48;
$custom-light: #604e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e48",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 72
  },
  "hsl": {
    "h": 257.586,
    "s": 67.442,
    "l": 16.863
  },
  "oklch": {
    "l": 0.23175,
    "c": 0.10054,
    "h": 289.6
  },
  "luminance": 0.01073
}

Semantic roles & 50–950 ramp

primary
#1F0E48
secondary
#6A832F
accent
#EA3DB8
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0E48

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

Preview Lab → · Contrast checker → · Palette generator →

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