#1F0547#1F0547

#1F0547 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.110 H 292.7°. Best body text is #FFFFFF at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#1F0547
RGBrgb(31, 5, 71)
HSLhsl(264, 87%, 15%)
HSVhsv(264, 93%, 28%)
CMYKcmyk(56.3%, 93%, 0%, 72.2%)
CIE-LABlab(7.72, 29.95, -35.35)
CIE-LCHlch(7.72, 46.33, 310.27°)
OKLaboklab(21.84% 0.0425 -0.1016)
OKLCHoklch(21.84% 0.11 292.7)
XYZxyz(1.7564, 0.8547, 6.0324)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0547 #2D4705
analogous
#050C47 #1F0547 #400547
triadic
#1F0547 #471F05 #05471F
tetradic
#1F0547 #47050C #2D4705 #054740
square
#1F0547 #47050C #2D4705 #054740
split-complementary
#1F0547 #474005 #0C4705
monochromatic
#0C021D #0C021D #1F0547 #380980 #510DB9

Accessibility & contrast

On white

17.93
#1F0547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0547
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0547#FFFFFF#000000##FFFFFF
##1F05471.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001849
Deuteranopia (green-blind)
#001646
Tritanopia (blue-blind)
#111927
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f0547;
/* rgb */ color: rgb(31, 5, 71);
/* oklch */ color: oklch(21.8% 0.110 292.7);
Tailwind
colors: {
  custom: {
    50: '#61497b',
    500: '#1f0547',
    950: '#000000',
  },
}
SCSS
$custom: #1f0547;
$custom-light: #61497b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0547",
  "rgb": {
    "r": 31,
    "g": 5,
    "b": 71
  },
  "hsl": {
    "h": 263.636,
    "s": 86.842,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21838,
    "c": 0.11009,
    "h": 292.7
  },
  "luminance": 0.00855
}

Semantic roles & 50–950 ramp

primary
#1F0547
secondary
#5F8721
accent
#FD2BAA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#050109
muted
#7A777B

Preview Lab

Preview with #1F0547

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

Preview Lab → · Contrast checker → · Palette generator →

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