#1F0347#1F0347

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

Color values

HEX#1F0347
RGBrgb(31, 3, 71)
HSLhsl(265, 92%, 15%)
HSVhsv(265, 96%, 28%)
CMYKcmyk(56.3%, 95.8%, 0%, 72.2%)
CIE-LABlab(7.33, 31.09, -35.99)
CIE-LCHlch(7.33, 47.56, 310.82°)
OKLaboklab(21.56% 0.0445 -0.1035)
OKLCHoklch(21.56% 0.113 293.2)
XYZxyz(1.7346, 0.8113, 6.0252)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0347 #2B4703
analogous
#030947 #1F0347 #410347
triadic
#1F0347 #471F03 #03471F
tetradic
#1F0347 #470309 #2B4703 #034741
square
#1F0347 #470309 #2B4703 #034741
split-complementary
#1F0347 #474103 #094703
monochromatic
#0D011D #0D011D #1F0347 #390582 #5208BC

Accessibility & contrast

On white

18.07
#1F0347 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0347
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0347#FFFFFF#000000##FFFFFF
##1F03471.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001749
Deuteranopia (green-blind)
#001546
Tritanopia (blue-blind)
#121827
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f0347;
/* rgb */ color: rgb(31, 3, 71);
/* oklch */ color: oklch(21.6% 0.113 293.2);
Tailwind
colors: {
  custom: {
    50: '#61487b',
    500: '#1f0347',
    950: '#000000',
  },
}
SCSS
$custom: #1f0347;
$custom-light: #61487b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0347",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 71
  },
  "hsl": {
    "h": 264.706,
    "s": 91.892,
    "l": 14.51
  },
  "oklch": {
    "l": 0.21559,
    "c": 0.11264,
    "h": 293.2
  },
  "luminance": 0.00811
}

Semantic roles & 50–950 ramp

primary
#1F0347
secondary
#5C881E
accent
#FF29A7
background
#F6F4F7
surface
#EBE6EE
border
#C6C2C9
text
#050009
muted
#7A777B

Preview Lab

Preview with #1F0347

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

Preview Lab → · Contrast checker → · Palette generator →

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