#1F0B47#1F0B47

#1F0B47 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.103 H 291.0°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#1F0B47
RGBrgb(31, 11, 71)
HSLhsl(260, 73%, 16%)
HSVhsv(260, 85%, 28%)
CMYKcmyk(56.3%, 84.5%, 0%, 72.2%)
CIE-LABlab(8.87, 26.61, -33.46)
CIE-LCHlch(8.87, 42.75, 308.50°)
OKLaboklab(22.64% 0.0369 -0.0961)
OKLCHoklch(22.64% 0.103 291)
XYZxyz(1.8218, 0.9855, 6.0542)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B47 #33470B
analogous
#0B1547 #1F0B47 #3D0B47
triadic
#1F0B47 #471F0B #0B471F
tetradic
#1F0B47 #470B15 #33470B #0B473D
square
#1F0B47 #470B15 #33470B #0B473D
split-complementary
#1F0B47 #473D0B #15470B
monochromatic
#0C041A #0C041A #1F0B47 #36137C #4D1BB1

Accessibility & contrast

On white

17.54
#1F0B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1F0B47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0B47
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0B47#FFFFFF#000000##FFFFFF
##1F0B471.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0b47;
/* rgb */ color: rgb(31, 11, 71);
/* oklch */ color: oklch(22.6% 0.103 291.0);
Tailwind
colors: {
  custom: {
    50: '#604c7b',
    500: '#1f0b47',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b47;
$custom-light: #604c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b47",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 71
  },
  "hsl": {
    "h": 260,
    "s": 73.171,
    "l": 16.078
  },
  "oklch": {
    "l": 0.22637,
    "c": 0.10293,
    "h": 291
  },
  "luminance": 0.00986
}

Semantic roles & 50–950 ramp

primary
#1F0B47
secondary
#66832A
accent
#F038B3
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0B47

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

Preview Lab → · Contrast checker → · Palette generator →

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