#1F0A2F#1F0A2F

#1F0A2F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.072 H 307.2°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#1F0A2F
RGBrgb(31, 10, 47)
HSLhsl(274, 65%, 11%)
HSVhsv(274, 79%, 18%)
CMYKcmyk(34%, 78.7%, 0%, 81.6%)
CIE-LABlab(6.45, 19.24, -20.08)
CIE-LCHlch(6.45, 27.81, 313.78°)
OKLaboklab(20.11% 0.0435 -0.0574)
OKLCHoklch(20.11% 0.072 307.2)
XYZxyz(1.1866, 0.7136, 2.7640)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0A2F #1A2F0A
analogous
#0C0A2F #1F0A2F #2F0A2C
triadic
#1F0A2F #2F1F0A #0A2F1F
tetradic
#1F0A2F #2F0C0A #1A2F0A #0A2C2F
square
#1F0A2F #2F0C0A #1A2F0A #0A2C2F
split-complementary
#1F0A2F #2C2F0A #0A2F0C
monochromatic
#110519 #110519 #1F0A2F #401561 #621F94

Accessibility & contrast

On white

18.38
#1F0A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1F0A2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0A2F
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0A2F#FFFFFF#000000##FFFFFF
##1F0A2F1.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#04142E
Tritanopia (blue-blind)
#1C121B
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0a2f;
/* rgb */ color: rgb(31, 10, 47);
/* oklch */ color: oklch(20.1% 0.072 307.2);
Tailwind
colors: {
  custom: {
    50: '#5c4b68',
    500: '#1f0a2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f0a2f;
$custom-light: #5c4b68;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0a2f",
  "rgb": {
    "r": 31,
    "g": 10,
    "b": 47
  },
  "hsl": {
    "h": 274.054,
    "s": 64.912,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20112,
    "c": 0.072,
    "h": 307.2
  },
  "luminance": 0.00714
}

Semantic roles & 50–950 ramp

primary
#1F0A2F
secondary
#466C29
accent
#E84089
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F0A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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