#1F0538#1F0538

#1F0538 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.092 H 301.9°. Best body text is #FFFFFF at 18.47:1 contrast (WCAG AA passes).

Color values

HEX#1F0538
RGBrgb(31, 5, 56)
HSLhsl(271, 84%, 12%)
HSVhsv(271, 91%, 22%)
CMYKcmyk(44.6%, 91.1%, 0%, 78%)
CIE-LABlab(6.19, 24.93, -27.11)
CIE-LCHlch(6.19, 36.83, 312.59°)
OKLaboklab(20.17% 0.0486 -0.0782)
OKLCHoklch(20.17% 0.092 301.9)
XYZxyz(1.3330, 0.6854, 3.8027)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0538 #1E3805
analogous
#050538 #1F0538 #380538
triadic
#1F0538 #381F05 #05381F
tetradic
#1F0538 #380505 #1E3805 #053838
square
#1F0538 #380505 #1E3805 #053838
split-complementary
#1F0538 #383805 #053805
monochromatic
#10031C #10031C #1F0538 #3E0A70 #5D0FA8

Accessibility & contrast

On white

18.47
#1F0538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1F0538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0538
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0538#FFFFFF#000000##FFFFFF
##1F05381.0018.471.1418.47
#FFFFFF18.471.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001339
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#19121E
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0538;
/* rgb */ color: rgb(31, 5, 56);
/* oklch */ color: oklch(20.2% 0.092 301.9);
Tailwind
colors: {
  custom: {
    50: '#5e486f',
    500: '#1f0538',
    950: '#000000',
  },
}
SCSS
$custom: #1f0538;
$custom-light: #5e486f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0538",
  "rgb": {
    "r": 31,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 270.588,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20166,
    "c": 0.09211,
    "h": 301.9
  },
  "luminance": 0.00685
}

Semantic roles & 50–950 ramp

primary
#1F0538
secondary
#4C7920
accent
#FA2E92
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #1F0538

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

Preview Lab → · Contrast checker → · Palette generator →

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