#1F0B4B#1F0B4B

#1F0B4B is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.1% C 0.108 H 289.2°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#1F0B4B
RGBrgb(31, 11, 75)
HSLhsl(259, 74%, 17%)
HSVhsv(259, 85%, 29%)
CMYKcmyk(58.7%, 85.3%, 0%, 70.6%)
CIE-LABlab(9.31, 27.89, -35.53)
CIE-LCHlch(9.31, 45.17, 308.13°)
OKLaboklab(23.08% 0.0356 -0.1022)
OKLCHoklch(23.08% 0.108 289.2)
XYZxyz(1.9544, 1.0386, 6.7527)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B4B #374B0B
analogous
#0B174B #1F0B4B #3F0B4B
triadic
#1F0B4B #4B1F0B #0B4B1F
tetradic
#1F0B4B #4B0B17 #374B0B #0B4B3F
square
#1F0B4B #4B0B17 #374B0B #0B4B3F
split-complementary
#1F0B4B #4B3F0B #174B0B
monochromatic
#0B041B #0B041B #1F0B4B #351380 #4B1BB6

Accessibility & contrast

On white

17.39
#1F0B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0B4B
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0B4B#FFFFFF#000000##FFFFFF
##1F0B4B1.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4D
Deuteranopia (green-blind)
#00184A
Tritanopia (blue-blind)
#0E1D2B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f0b4b;
/* rgb */ color: rgb(31, 11, 75);
/* oklch */ color: oklch(23.1% 0.108 289.2);
Tailwind
colors: {
  custom: {
    50: '#614c7e',
    500: '#1f0b4b',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b4b;
$custom-light: #614c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b4b",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 75
  },
  "hsl": {
    "h": 258.75,
    "s": 74.419,
    "l": 16.863
  },
  "oklch": {
    "l": 0.23077,
    "c": 0.10818,
    "h": 289.2
  },
  "luminance": 0.01039
}

Semantic roles & 50–950 ramp

primary
#1F0B4B
secondary
#6A872B
accent
#F137B7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F0B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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