#1F0D3E#1F0D3E

#1F0D3E is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.088 H 294.9°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#1F0D3E
RGBrgb(31, 13, 62)
HSLhsl(262, 65%, 15%)
HSVhsv(262, 79%, 24%)
CMYKcmyk(50%, 79%, 0%, 75.7%)
CIE-LABlab(8.37, 22.53, -27.91)
CIE-LCHlch(8.37, 35.87, 308.92°)
OKLaboklab(22% 0.0371 -0.0798)
OKLCHoklch(22% 0.088 294.9)
XYZxyz(1.5783, 0.9269, 4.6523)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D3E #2C3E0D
analogous
#0D143E #1F0D3E #380D3E
triadic
#1F0D3E #3E1F0D #0D3E1F
tetradic
#1F0D3E #3E0D14 #2C3E0D #0D3E38
square
#1F0D3E #3E0D14 #2C3E0D #0D3E38
split-complementary
#1F0D3E #3E380D #143E0D
monochromatic
#0D0519 #0D0519 #1F0D3E #381871 #5222A3

Accessibility & contrast

On white

17.72
#1F0D3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0D3E
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D3E#FFFFFF#000000##FFFFFF
##1F0D3E1.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193F
Deuteranopia (green-blind)
#00173D
Tritanopia (blue-blind)
#161924
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0d3e;
/* rgb */ color: rgb(31, 13, 62);
/* oklch */ color: oklch(22.0% 0.088 294.9);
Tailwind
colors: {
  custom: {
    50: '#5e4d74',
    500: '#1f0d3e',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d3e;
$custom-light: #5e4d74;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d3e",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 62
  },
  "hsl": {
    "h": 262.041,
    "s": 65.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21998,
    "c": 0.08805,
    "h": 294.9
  },
  "luminance": 0.00927
}

Semantic roles & 50–950 ramp

primary
#1F0D3E
secondary
#5E7A2D
accent
#E840AA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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