#1F0546#1F0546

#1F0546 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.7% C 0.109 H 293.2°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#1F0546
RGBrgb(31, 5, 70)
HSLhsl(264, 87%, 15%)
HSVhsv(264, 93%, 27%)
CMYKcmyk(55.7%, 92.9%, 0%, 72.5%)
CIE-LABlab(7.61, 29.64, -34.83)
CIE-LCHlch(7.61, 45.73, 310.39°)
OKLaboklab(21.72% 0.0429 -0.1001)
OKLCHoklch(21.72% 0.109 293.2)
XYZxyz(1.7245, 0.8420, 5.8648)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0546 #2C4605
analogous
#050B46 #1F0546 #400546
triadic
#1F0546 #461F05 #05461F
tetradic
#1F0546 #46050B #2C4605 #054640
square
#1F0546 #46050B #2C4605 #054640
split-complementary
#1F0546 #464005 #0B4605
monochromatic
#0D021D #0D021D #1F0546 #38097F #520DB8

Accessibility & contrast

On white

17.97
#1F0546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1F0546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0546
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0546#FFFFFF#000000##FFFFFF
##1F05461.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001748
Deuteranopia (green-blind)
#001645
Tritanopia (blue-blind)
#121826
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f0546;
/* rgb */ color: rgb(31, 5, 70);
/* oklch */ color: oklch(21.7% 0.109 293.2);
Tailwind
colors: {
  custom: {
    50: '#61497a',
    500: '#1f0546',
    950: '#000000',
  },
}
SCSS
$custom: #1f0546;
$custom-light: #61497a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0546",
  "rgb": {
    "r": 31,
    "g": 5,
    "b": 70
  },
  "hsl": {
    "h": 264,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21721,
    "c": 0.1089,
    "h": 293.2
  },
  "luminance": 0.00842
}

Semantic roles & 50–950 ramp

primary
#1F0546
secondary
#5E8621
accent
#FD2BA9
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0546

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

Preview Lab → · Contrast checker → · Palette generator →

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