#1F0A3E#1F0A3E

#1F0A3E is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.092 H 296.1°. Best body text is #FFFFFF at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#1F0A3E
RGBrgb(31, 10, 62)
HSLhsl(264, 72%, 14%)
HSVhsv(264, 84%, 24%)
CMYKcmyk(50%, 83.9%, 0%, 75.7%)
CIE-LABlab(7.73, 24.30, -28.94)
CIE-LCHlch(7.73, 37.79, 310.02°)
OKLaboklab(21.55% 0.0406 -0.0829)
OKLCHoklch(21.55% 0.092 296.1)
XYZxyz(1.5429, 0.8562, 4.6405)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0A3E #293E0A
analogous
#0A0F3E #1F0A3E #390A3E
triadic
#1F0A3E #3E1F0A #0A3E1F
tetradic
#1F0A3E #3E0A0F #293E0A #0A3E39
square
#1F0A3E #3E0A0F #293E0A #0A3E39
split-complementary
#1F0A3E #3E390A #0F3E0A
monochromatic
#0D041A #0D041A #1F0A3E #391373 #541BA7

Accessibility & contrast

On white

17.93
#1F0A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1F0A3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0A3E
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0A3E#FFFFFF#000000##FFFFFF
##1F0A3E1.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173F
Deuteranopia (green-blind)
#00163D
Tritanopia (blue-blind)
#171823
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f0a3e;
/* rgb */ color: rgb(31, 10, 62);
/* oklch */ color: oklch(21.5% 0.092 296.1);
Tailwind
colors: {
  custom: {
    50: '#5f4b74',
    500: '#1f0a3e',
    950: '#000000',
  },
}
SCSS
$custom: #1f0a3e;
$custom-light: #5f4b74;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0a3e",
  "rgb": {
    "r": 31,
    "g": 10,
    "b": 62
  },
  "hsl": {
    "h": 264.231,
    "s": 72.222,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21546,
    "c": 0.09227,
    "h": 296.1
  },
  "luminance": 0.00856
}

Semantic roles & 50–950 ramp

primary
#1F0A3E
secondary
#5A7B28
accent
#EF39A5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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