#1F0938#1F0938

#1F0938 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.086 H 300.4°. Best body text is #FFFFFF at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#1F0938
RGBrgb(31, 9, 56)
HSLhsl(268, 72%, 13%)
HSVhsv(268, 84%, 22%)
CMYKcmyk(44.6%, 83.9%, 0%, 78%)
CIE-LABlab(6.98, 22.84, -25.84)
CIE-LCHlch(6.98, 34.49, 311.47°)
OKLaboklab(20.79% 0.0433 -0.074)
OKLCHoklch(20.79% 0.086 300.4)
XYZxyz(1.3764, 0.7722, 3.8171)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0938 #223809
analogous
#090A38 #1F0938 #360938
triadic
#1F0938 #381F09 #09381F
tetradic
#1F0938 #38090A #223809 #093836
square
#1F0938 #38090A #223809 #093836
split-complementary
#1F0938 #383609 #0A3809
monochromatic
#0F041A #0F041A #1F0938 #3C116D #591AA1

Accessibility & contrast

On white

18.19
#1F0938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0938
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0938#FFFFFF#000000##FFFFFF
##1F09381.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001537
Tritanopia (blue-blind)
#19151F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f0938;
/* rgb */ color: rgb(31, 9, 56);
/* oklch */ color: oklch(20.8% 0.086 300.4);
Tailwind
colors: {
  custom: {
    50: '#5e4a6f',
    500: '#1f0938',
    950: '#000000',
  },
}
SCSS
$custom: #1f0938;
$custom-light: #5e4a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0938",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 56
  },
  "hsl": {
    "h": 268.085,
    "s": 72.308,
    "l": 12.745
  },
  "oklch": {
    "l": 0.20794,
    "c": 0.08573,
    "h": 300.4
  },
  "luminance": 0.00772
}

Semantic roles & 50–950 ramp

primary
#1F0938
secondary
#517627
accent
#EF399A
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0938

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

Preview Lab → · Contrast checker → · Palette generator →

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