#1F0A46#1F0A46

#1F0A46 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.4% C 0.103 H 291.8°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#1F0A46
RGBrgb(31, 10, 70)
HSLhsl(261, 75%, 16%)
HSVhsv(261, 86%, 27%)
CMYKcmyk(55.7%, 85.7%, 0%, 72.5%)
CIE-LABlab(8.57, 26.84, -33.24)
CIE-LCHlch(8.57, 42.72, 308.91°)
OKLaboklab(22.4% 0.0381 -0.0955)
OKLCHoklch(22.4% 0.103 291.8)
XYZxyz(1.7788, 0.9505, 5.8829)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0A46 #31460A
analogous
#0A1346 #1F0A46 #3D0A46
triadic
#1F0A46 #461F0A #0A461F
tetradic
#1F0A46 #460A13 #31460A #0A463D
square
#1F0A46 #460A13 #31460A #0A463D
split-complementary
#1F0A46 #463D0A #13460A
monochromatic
#0C041B #0C041B #1F0A46 #37127C #4E19B1

Accessibility & contrast

On white

17.64
#1F0A46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0A46
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0A46#FFFFFF#000000##FFFFFF
##1F0A461.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001745
Tritanopia (blue-blind)
#121B28
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f0a46;
/* rgb */ color: rgb(31, 10, 70);
/* oklch */ color: oklch(22.4% 0.103 291.8);
Tailwind
colors: {
  custom: {
    50: '#604c7a',
    500: '#1f0a46',
    950: '#000000',
  },
}
SCSS
$custom: #1f0a46;
$custom-light: #604c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0a46",
  "rgb": {
    "r": 31,
    "g": 10,
    "b": 70
  },
  "hsl": {
    "h": 261,
    "s": 75,
    "l": 15.686
  },
  "oklch": {
    "l": 0.22396,
    "c": 0.10279,
    "h": 291.8
  },
  "luminance": 0.00951
}

Semantic roles & 50–950 ramp

primary
#1F0A46
secondary
#638329
accent
#F236B0
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0A46

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

Preview Lab → · Contrast checker → · Palette generator →

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