#1F0A42#1F0A42

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

Color values

HEX#1F0A42
RGBrgb(31, 10, 66)
HSLhsl(263, 74%, 15%)
HSVhsv(263, 85%, 26%)
CMYKcmyk(53%, 84.8%, 0%, 74.1%)
CIE-LABlab(8.14, 25.57, -31.12)
CIE-LCHlch(8.14, 40.28, 309.41°)
OKLaboklab(21.97% 0.0394 -0.0892)
OKLCHoklch(21.97% 0.098 293.8)
XYZxyz(1.6567, 0.9017, 5.2400)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0A42 #2D420A
analogous
#0A1142 #1F0A42 #3B0A42
triadic
#1F0A42 #421F0A #0A421F
tetradic
#1F0A42 #420A11 #2D420A #0A423B
square
#1F0A42 #420A11 #2D420A #0A423B
split-complementary
#1F0A42 #423B0A #11420A
monochromatic
#0C041B #0C041B #1F0A42 #381277 #511AAC

Accessibility & contrast

On white

17.79
#1F0A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0A42
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0A42#FFFFFF#000000##FFFFFF
##1F0A421.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001741
Tritanopia (blue-blind)
#141925
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0a42;
/* rgb */ color: rgb(31, 10, 66);
/* oklch */ color: oklch(22.0% 0.098 293.8);
Tailwind
colors: {
  custom: {
    50: '#5f4b77',
    500: '#1f0a42',
    950: '#000000',
  },
}
SCSS
$custom: #1f0a42;
$custom-light: #5f4b77;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0a42",
  "rgb": {
    "r": 31,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 262.5,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21965,
    "c": 0.09756,
    "h": 293.8
  },
  "luminance": 0.00902
}

Semantic roles & 50–950 ramp

primary
#1F0A42
secondary
#5F7F29
accent
#F037AB
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0A42

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

Preview Lab → · Contrast checker → · Palette generator →

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