#1F0E4A#1F0E4A

#1F0E4A is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.103 H 288.7°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#1F0E4A
RGBrgb(31, 14, 74)
HSLhsl(257, 68%, 17%)
HSVhsv(257, 81%, 29%)
CMYKcmyk(58.1%, 81.1%, 0%, 71%)
CIE-LABlab(9.80, 25.87, -34.03)
CIE-LCHlch(9.80, 42.75, 307.24°)
OKLaboklab(23.39% 0.0331 -0.0978)
OKLCHoklch(23.39% 0.103 288.7)
XYZxyz(1.9578, 1.0997, 6.5863)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E4A #394A0E
analogous
#0E1B4A #1F0E4A #3D0E4A
triadic
#1F0E4A #4A1F0E #0E4A1F
tetradic
#1F0E4A #4A0E1B #394A0E #0E4A3D
square
#1F0E4A #4A0E1B #394A0E #0E4A3D
split-complementary
#1F0E4A #4A3D0E #1B4A0E
monochromatic
#0B051A #0B051A #1F0E4A #35187D #4A21B1

Accessibility & contrast

On white

17.21
#1F0E4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#1F0E4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0E4A
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E4A#FFFFFF#000000##FFFFFF
##1F0E4A1.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4C
Deuteranopia (green-blind)
#001A49
Tritanopia (blue-blind)
#0F1E2B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0e4a;
/* rgb */ color: rgb(31, 14, 74);
/* oklch */ color: oklch(23.4% 0.103 288.7);
Tailwind
colors: {
  custom: {
    50: '#604e7d',
    500: '#1f0e4a',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e4a;
$custom-light: #604e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e4a",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 74
  },
  "hsl": {
    "h": 257,
    "s": 68.182,
    "l": 17.255
  },
  "oklch": {
    "l": 0.23387,
    "c": 0.10328,
    "h": 288.7
  },
  "luminance": 0.011
}

Semantic roles & 50–950 ramp

primary
#1F0E4A
secondary
#6C852F
accent
#EB3DBA
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F0E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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