#1F0537#1F0537

#1F0537 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.091 H 302.6°. Best body text is #FFFFFF at 18.50:1 contrast (WCAG AA passes).

Color values

HEX#1F0537
RGBrgb(31, 5, 55)
HSLhsl(271, 83%, 12%)
HSVhsv(271, 91%, 22%)
CMYKcmyk(43.6%, 90.9%, 0%, 78.4%)
CIE-LABlab(6.10, 24.57, -26.53)
CIE-LCHlch(6.10, 36.16, 312.81°)
OKLaboklab(20.06% 0.049 -0.0766)
OKLCHoklch(20.06% 0.091 302.6)
XYZxyz(1.3088, 0.6757, 3.6752)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0537 #1D3705
analogous
#060537 #1F0537 #370536
triadic
#1F0537 #371F05 #05371F
tetradic
#1F0537 #370605 #1D3705 #053637
square
#1F0537 #370605 #1D3705 #053637
split-complementary
#1F0537 #363705 #053706
monochromatic
#10031C #10031C #1F0537 #3F0A6F #5E0FA7

Accessibility & contrast

On white

18.50
#1F0537 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0537
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0537#FFFFFF#000000##FFFFFF
##1F05371.0018.501.1418.50
#FFFFFF18.501.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001338
Deuteranopia (green-blind)
#001336
Tritanopia (blue-blind)
#1A121E
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0537;
/* rgb */ color: rgb(31, 5, 55);
/* oklch */ color: oklch(20.1% 0.091 302.6);
Tailwind
colors: {
  custom: {
    50: '#5e486e',
    500: '#1f0537',
    950: '#000000',
  },
}
SCSS
$custom: #1f0537;
$custom-light: #5e486e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0537",
  "rgb": {
    "r": 31,
    "g": 5,
    "b": 55
  },
  "hsl": {
    "h": 271.2,
    "s": 83.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20061,
    "c": 0.09091,
    "h": 302.6
  },
  "luminance": 0.00676
}

Semantic roles & 50–950 ramp

primary
#1F0537
secondary
#4A7820
accent
#FA2E90
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1F0537

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

Preview Lab → · Contrast checker → · Palette generator →

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