#1F0C2E#1F0C2E

#1F0C2E is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.4% C 0.067 H 307.2°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#1F0C2E
RGBrgb(31, 12, 46)
HSLhsl(274, 59%, 11%)
HSVhsv(274, 74%, 18%)
CMYKcmyk(32.6%, 73.9%, 0%, 82%)
CIE-LABlab(6.79, 17.86, -18.79)
CIE-LCHlch(6.79, 25.93, 313.55°)
OKLaboklab(20.37% 0.0405 -0.0534)
OKLCHoklch(20.37% 0.067 307.2)
XYZxyz(1.1896, 0.7515, 2.6666)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0C2E #1B2E0C
analogous
#0E0C2E #1F0C2E #2E0C2C
triadic
#1F0C2E #2E1F0C #0C2E1F
tetradic
#1F0C2E #2E0E0C #1B2E0C #0C2C2E
square
#1F0C2E #2E0E0C #1B2E0C #0C2C2E
split-complementary
#1F0C2E #2C2E0C #0C2E0E
monochromatic
#100618 #100618 #1F0C2E #40195F #60258F

Accessibility & contrast

On white

18.25
#1F0C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1F0C2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0C2E
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0C2E#FFFFFF#000000##FFFFFF
##1F0C2E1.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142F
Deuteranopia (green-blind)
#06152D
Tritanopia (blue-blind)
#1D131B
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f0c2e;
/* rgb */ color: rgb(31, 12, 46);
/* oklch */ color: oklch(20.4% 0.067 307.2);
Tailwind
colors: {
  custom: {
    50: '#5c4c67',
    500: '#1f0c2e',
    950: '#000000',
  },
}
SCSS
$custom: #1f0c2e;
$custom-light: #5c4c67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0c2e",
  "rgb": {
    "r": 31,
    "g": 12,
    "b": 46
  },
  "hsl": {
    "h": 273.529,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.20367,
    "c": 0.067,
    "h": 307.2
  },
  "luminance": 0.00752
}

Semantic roles & 50–950 ramp

primary
#1F0C2E
secondary
#476A2C
accent
#E2468B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F0C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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