#1F0E4B#1F0E4B

#1F0E4B is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.105 H 288.3°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#1F0E4B
RGBrgb(31, 14, 75)
HSLhsl(257, 69%, 17%)
HSVhsv(257, 81%, 29%)
CMYKcmyk(58.7%, 81.3%, 0%, 70.6%)
CIE-LABlab(9.90, 26.20, -34.56)
CIE-LCHlch(9.90, 43.37, 307.17°)
OKLaboklab(23.49% 0.0329 -0.0993)
OKLCHoklch(23.49% 0.105 288.3)
XYZxyz(1.9917, 1.1133, 6.7652)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E4B #3A4B0E
analogous
#0E1C4B #1F0E4B #3D0E4B
triadic
#1F0E4B #4B1F0E #0E4B1F
tetradic
#1F0E4B #4B0E1C #3A4B0E #0E4B3D
square
#1F0E4B #4B0E1C #3A4B0E #0E4B3D
split-complementary
#1F0E4B #4B3D0E #1C4B0E
monochromatic
#0B051A #0B051A #1F0E4B #34187F #4A21B2

Accessibility & contrast

On white

17.18
#1F0E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E4B
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E4B#FFFFFF#000000##FFFFFF
##1F0E4B1.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#001A4A
Tritanopia (blue-blind)
#0E1F2B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0e4b;
/* rgb */ color: rgb(31, 14, 75);
/* oklch */ color: oklch(23.5% 0.105 288.3);
Tailwind
colors: {
  custom: {
    50: '#614e7e',
    500: '#1f0e4b',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e4b;
$custom-light: #614e7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e4b",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 75
  },
  "hsl": {
    "h": 256.721,
    "s": 68.539,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23494,
    "c": 0.10464,
    "h": 288.3
  },
  "luminance": 0.01113
}

Semantic roles & 50–950 ramp

primary
#1F0E4B
secondary
#6E862F
accent
#EB3CBB
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F0E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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