#1F0F4A#1F0F4A

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

Color values

HEX#1F0F4A
RGBrgb(31, 15, 74)
HSLhsl(256, 66%, 17%)
HSVhsv(256, 80%, 29%)
CMYKcmyk(58.1%, 79.7%, 0%, 71%)
CIE-LABlab(10.01, 25.27, -33.68)
CIE-LCHlch(10.01, 42.11, 306.88°)
OKLaboklab(23.54% 0.0322 -0.0968)
OKLCHoklch(23.54% 0.102 288.4)
XYZxyz(1.9716, 1.1273, 6.5909)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F4A #3A4A0F
analogous
#0F1D4A #1F0F4A #3C0F4A
triadic
#1F0F4A #4A1F0F #0F4A1F
tetradic
#1F0F4A #4A0F1D #3A4A0F #0F4A3C
square
#1F0F4A #4A0F1D #3A4A0F #0F4A3C
split-complementary
#1F0F4A #4A3C0F #1D4A0F
monochromatic
#0B0519 #0B0519 #1F0F4A #34197D #4A24B0

Accessibility & contrast

On white

17.14
#1F0F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1F0F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F4A
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F4A#FFFFFF#000000##FFFFFF
##1F0F4A1.0017.141.2317.14
#FFFFFF17.141.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0f4a;
/* rgb */ color: rgb(31, 15, 74);
/* oklch */ color: oklch(23.5% 0.102 288.4);
Tailwind
colors: {
  custom: {
    50: '#604f7d',
    500: '#1f0f4a',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f4a;
$custom-light: #604f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f4a",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 256.271,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23538,
    "c": 0.102,
    "h": 288.4
  },
  "luminance": 0.01127
}

Semantic roles & 50–950 ramp

primary
#1F0F4A
secondary
#6E8430
accent
#E93FBB
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F0F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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