#1F0B3E#1F0B3E

#1F0B3E is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.091 H 295.7°. Best body text is #FFFFFF at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#1F0B3E
RGBrgb(31, 11, 62)
HSLhsl(264, 70%, 14%)
HSVhsv(264, 82%, 24%)
CMYKcmyk(50%, 82.3%, 0%, 75.7%)
CIE-LABlab(7.93, 23.74, -28.61)
CIE-LCHlch(7.93, 37.18, 309.68°)
OKLaboklab(21.69% 0.0395 -0.0819)
OKLCHoklch(21.69% 0.091 295.7)
XYZxyz(1.5540, 0.8784, 4.6442)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B3E #2A3E0B
analogous
#0B113E #1F0B3E #390B3E
triadic
#1F0B3E #3E1F0B #0B3E1F
tetradic
#1F0B3E #3E0B11 #2A3E0B #0B3E39
square
#1F0B3E #3E0B11 #2A3E0B #0B3E39
split-complementary
#1F0B3E #3E390B #113E0B
monochromatic
#0D051A #0D051A #1F0B3E #391472 #531DA6

Accessibility & contrast

On white

17.86
#1F0B3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1F0B3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0B3E
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0B3E#FFFFFF#000000##FFFFFF
##1F0B3E1.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183F
Deuteranopia (green-blind)
#00173D
Tritanopia (blue-blind)
#171823
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f0b3e;
/* rgb */ color: rgb(31, 11, 62);
/* oklch */ color: oklch(21.7% 0.091 295.7);
Tailwind
colors: {
  custom: {
    50: '#5e4c74',
    500: '#1f0b3e',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b3e;
$custom-light: #5e4c74;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b3e",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 62
  },
  "hsl": {
    "h": 263.529,
    "s": 69.863,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2169,
    "c": 0.09091,
    "h": 295.7
  },
  "luminance": 0.00878
}

Semantic roles & 50–950 ramp

primary
#1F0B3E
secondary
#5B7B2A
accent
#ED3BA7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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