#1F0F46#1F0F46

#1F0F46 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.096 H 290.1°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#1F0F46
RGBrgb(31, 15, 70)
HSLhsl(257, 65%, 17%)
HSVhsv(257, 79%, 27%)
CMYKcmyk(55.7%, 78.6%, 0%, 72.5%)
CIE-LABlab(9.60, 23.93, -31.56)
CIE-LCHlch(9.60, 39.60, 307.17°)
OKLaboklab(23.12% 0.0331 -0.0906)
OKLCHoklch(23.12% 0.096 290.1)
XYZxyz(1.8411, 1.0751, 5.9037)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F46 #36460F
analogous
#0F1B46 #1F0F46 #3B0F46
triadic
#1F0F46 #461F0F #0F461F
tetradic
#1F0F46 #460F1B #36460F #0F463B
square
#1F0F46 #460F1B #36460F #0F463B
split-complementary
#1F0F46 #463B0F #1B460F
monochromatic
#0B0519 #0B0519 #1F0F46 #351A78 #4C25AB

Accessibility & contrast

On white

17.28
#1F0F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F46
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F46#FFFFFF#000000##FFFFFF
##1F0F461.0017.281.2117.28
#FFFFFF17.281.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0f46;
/* rgb */ color: rgb(31, 15, 70);
/* oklch */ color: oklch(23.1% 0.096 290.1);
Tailwind
colors: {
  custom: {
    50: '#604f7a',
    500: '#1f0f46',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f46;
$custom-light: #604f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f46",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 257.455,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.23122,
    "c": 0.09642,
    "h": 290.1
  },
  "luminance": 0.01075
}

Semantic roles & 50–950 ramp

primary
#1F0F46
secondary
#698030
accent
#E840B7
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050209
muted
#79787B

Preview Lab

Preview with #1F0F46

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

Preview Lab → · Contrast checker → · Palette generator →

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