#1F0331#1F0331

#1F0331 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.1% C 0.088 H 308.2°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#1F0331
RGBrgb(31, 3, 49)
HSLhsl(277, 88%, 10%)
HSVhsv(277, 94%, 19%)
CMYKcmyk(36.7%, 93.9%, 0%, 80.8%)
CIE-LABlab(5.22, 23.37, -23.52)
CIE-LCHlch(5.22, 33.16, 314.82°)
OKLaboklab(19.1% 0.0542 -0.0689)
OKLCHoklch(19.1% 0.088 308.2)
XYZxyz(1.1519, 0.5782, 2.9561)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0331 #153103
analogous
#080331 #1F0331 #31032C
triadic
#1F0331 #311F03 #03311F
tetradic
#1F0331 #310803 #153103 #032C31
square
#1F0331 #310803 #153103 #032C31
split-complementary
#1F0331 #2C3103 #033108
monochromatic
#12021D #12021D #1F0331 #43076B #680AA4

Accessibility & contrast

On white

18.82
#1F0331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1F0331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0331
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0331#FFFFFF#000000##FFFFFF
##1F03311.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001032
Deuteranopia (green-blind)
#001230
Tritanopia (blue-blind)
#1C0E1A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1f0331;
/* rgb */ color: rgb(31, 3, 49);
/* oklch */ color: oklch(19.1% 0.088 308.2);
Tailwind
colors: {
  custom: {
    50: '#5d4769',
    500: '#1f0331',
    950: '#000000',
  },
}
SCSS
$custom: #1f0331;
$custom-light: #5d4769;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0331",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 276.522,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19098,
    "c": 0.08766,
    "h": 308.2
  },
  "luminance": 0.00578
}

Semantic roles & 50–950 ramp

primary
#1F0331
secondary
#3E741B
accent
#FF297D
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F0331

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

Preview Lab → · Contrast checker → · Palette generator →

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