#1F0541#1F0541

#1F0541 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.103 H 296.0°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#1F0541
RGBrgb(31, 5, 65)
HSLhsl(266, 86%, 14%)
HSVhsv(266, 92%, 25%)
CMYKcmyk(52.3%, 92.3%, 0%, 74.5%)
CIE-LABlab(7.06, 28.03, -32.19)
CIE-LCHlch(7.06, 42.68, 311.05°)
OKLaboklab(21.15% 0.0451 -0.0925)
OKLCHoklch(21.15% 0.103 296)
XYZxyz(1.5732, 0.7815, 5.0679)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0541 #274105
analogous
#050941 #1F0541 #3D0541
triadic
#1F0541 #411F05 #05411F
tetradic
#1F0541 #410509 #274105 #05413D
square
#1F0541 #410509 #274105 #05413D
split-complementary
#1F0541 #413D05 #094105
monochromatic
#0E021C #0E021C #1F0541 #3A097A #550EB3

Accessibility & contrast

On white

18.16
#1F0541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1F0541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0541
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0541#FFFFFF#000000##FFFFFF
##1F05411.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001643
Deuteranopia (green-blind)
#001540
Tritanopia (blue-blind)
#151623
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f0541;
/* rgb */ color: rgb(31, 5, 65);
/* oklch */ color: oklch(21.1% 0.103 296.0);
Tailwind
colors: {
  custom: {
    50: '#604876',
    500: '#1f0541',
    950: '#000000',
  },
}
SCSS
$custom: #1f0541;
$custom-light: #604876;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0541",
  "rgb": {
    "r": 31,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 266,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.21149,
    "c": 0.10291,
    "h": 296
  },
  "luminance": 0.00782
}

Semantic roles & 50–950 ramp

primary
#1F0541
secondary
#578120
accent
#FC2CA2
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0541

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

Preview Lab → · Contrast checker → · Palette generator →

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