#1F0A47#1F0A47

#1F0A47 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.104 H 291.3°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#1F0A47
RGBrgb(31, 10, 71)
HSLhsl(261, 75%, 16%)
HSVhsv(261, 86%, 28%)
CMYKcmyk(56.3%, 85.9%, 0%, 72.2%)
CIE-LABlab(8.68, 27.15, -33.77)
CIE-LCHlch(8.68, 43.33, 308.80°)
OKLaboklab(22.51% 0.0378 -0.097)
OKLCHoklch(22.51% 0.104 291.3)
XYZxyz(1.8106, 0.9632, 6.0505)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0A47 #32470A
analogous
#0A1347 #1F0A47 #3D0A47
triadic
#1F0A47 #471F0A #0A471F
tetradic
#1F0A47 #470A13 #32470A #0A473D
square
#1F0A47 #470A13 #32470A #0A473D
split-complementary
#1F0A47 #473D0A #13470A
monochromatic
#0C041B #0C041B #1F0A47 #36127D #4E19B2

Accessibility & contrast

On white

17.61
#1F0A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1F0A47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0A47
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0A47#FFFFFF#000000##FFFFFF
##1F0A471.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A49
Deuteranopia (green-blind)
#001846
Tritanopia (blue-blind)
#111B28
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f0a47;
/* rgb */ color: rgb(31, 10, 71);
/* oklch */ color: oklch(22.5% 0.104 291.3);
Tailwind
colors: {
  custom: {
    50: '#604c7b',
    500: '#1f0a47',
    950: '#000000',
  },
}
SCSS
$custom: #1f0a47;
$custom-light: #604c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0a47",
  "rgb": {
    "r": 31,
    "g": 10,
    "b": 71
  },
  "hsl": {
    "h": 260.656,
    "s": 75.309,
    "l": 15.882
  },
  "oklch": {
    "l": 0.22505,
    "c": 0.1041,
    "h": 291.3
  },
  "luminance": 0.00963
}

Semantic roles & 50–950 ramp

primary
#1F0A47
secondary
#658429
accent
#F236B1
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0A47

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

Preview Lab → · Contrast checker → · Palette generator →

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