#1F0F47#1F0F47

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

Color values

HEX#1F0F47
RGBrgb(31, 15, 71)
HSLhsl(257, 65%, 17%)
HSVhsv(257, 79%, 28%)
CMYKcmyk(56.3%, 78.9%, 0%, 72.2%)
CIE-LABlab(9.70, 24.26, -32.09)
CIE-LCHlch(9.70, 40.23, 307.09°)
OKLaboklab(23.23% 0.0329 -0.0921)
OKLCHoklch(23.23% 0.098 289.6)
XYZxyz(1.8729, 1.0878, 6.0713)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F47 #37470F
analogous
#0F1B47 #1F0F47 #3B0F47
triadic
#1F0F47 #471F0F #0F471F
tetradic
#1F0F47 #470F1B #37470F #0F473B
square
#1F0F47 #470F1B #37470F #0F473B
split-complementary
#1F0F47 #473B0F #1B470F
monochromatic
#0B0519 #0B0519 #1F0F47 #351A7A #4B24AC

Accessibility & contrast

On white

17.25
#1F0F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F47
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F47#FFFFFF#000000##FFFFFF
##1F0F471.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C49
Deuteranopia (green-blind)
#001A46
Tritanopia (blue-blind)
#111E29
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0f47;
/* rgb */ color: rgb(31, 15, 71);
/* oklch */ color: oklch(23.2% 0.098 289.6);
Tailwind
colors: {
  custom: {
    50: '#604f7b',
    500: '#1f0f47',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f47;
$custom-light: #604f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f47",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 257.143,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.23225,
    "c": 0.09782,
    "h": 289.6
  },
  "luminance": 0.01088
}

Semantic roles & 50–950 ramp

primary
#1F0F47
secondary
#6A8130
accent
#E840B8
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050209
muted
#79787B

Preview Lab

Preview with #1F0F47

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

Preview Lab → · Contrast checker → · Palette generator →

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