#1F0533#1F0533

#1F0533 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.7% C 0.086 H 305.7°. Best body text is #FFFFFF at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#1F0533
RGBrgb(31, 5, 51)
HSLhsl(274, 82%, 11%)
HSVhsv(274, 90%, 20%)
CMYKcmyk(39.2%, 90.2%, 0%, 80%)
CIE-LABlab(5.77, 23.13, -24.12)
CIE-LCHlch(5.77, 33.42, 313.79°)
OKLaboklab(19.65% 0.0503 -0.0699)
OKLCHoklch(19.65% 0.086 305.7)
XYZxyz(1.2168, 0.6389, 3.1905)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0533 #193305
analogous
#080533 #1F0533 #330530
triadic
#1F0533 #331F05 #05331F
tetradic
#1F0533 #330805 #193305 #053033
square
#1F0533 #330805 #193305 #053033
split-complementary
#1F0533 #303305 #053308
monochromatic
#11031C #11031C #1F0533 #410A6B #6310A2

Accessibility & contrast

On white

18.62
#1F0533 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1F0533 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0533
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0533#FFFFFF#000000##FFFFFF
##1F05331.0018.621.1318.62
#FFFFFF18.621.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001234
Deuteranopia (green-blind)
#001332
Tritanopia (blue-blind)
#1B101B
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f0533;
/* rgb */ color: rgb(31, 5, 51);
/* oklch */ color: oklch(19.7% 0.086 305.7);
Tailwind
colors: {
  custom: {
    50: '#5d486b',
    500: '#1f0533',
    950: '#000000',
  },
}
SCSS
$custom: #1f0533;
$custom-light: #5d486b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0533",
  "rgb": {
    "r": 31,
    "g": 5,
    "b": 51
  },
  "hsl": {
    "h": 273.913,
    "s": 82.143,
    "l": 10.98
  },
  "oklch": {
    "l": 0.19652,
    "c": 0.0861,
    "h": 305.7
  },
  "luminance": 0.00639
}

Semantic roles & 50–950 ramp

primary
#1F0533
secondary
#44741F
accent
#F82F87
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F0533

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

Preview Lab → · Contrast checker → · Palette generator →

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