#1F0747#1F0747

#1F0747 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.108 H 292.1°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#1F0747
RGBrgb(31, 7, 71)
HSLhsl(263, 82%, 15%)
HSVhsv(263, 90%, 28%)
CMYKcmyk(56.3%, 90.1%, 0%, 72.2%)
CIE-LABlab(8.11, 28.80, -34.70)
CIE-LCHlch(8.11, 45.10, 309.69°)
OKLaboklab(22.11% 0.0406 -0.0997)
OKLCHoklch(22.11% 0.108 292.1)
XYZxyz(1.7781, 0.8981, 6.0397)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0747 #2F4707
analogous
#070F47 #1F0747 #3F0747
triadic
#1F0747 #471F07 #07471F
tetradic
#1F0747 #47070F #2F4707 #07473F
square
#1F0747 #47070F #2F4707 #07473F
split-complementary
#1F0747 #473F07 #0F4707
monochromatic
#0C031C #0C031C #1F0747 #370C7F #5012B6

Accessibility & contrast

On white

17.80
#1F0747 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1F0747 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0747
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0747#FFFFFF#000000##FFFFFF
##1F07471.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001949
Deuteranopia (green-blind)
#001646
Tritanopia (blue-blind)
#111A27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0747;
/* rgb */ color: rgb(31, 7, 71);
/* oklch */ color: oklch(22.1% 0.108 292.1);
Tailwind
colors: {
  custom: {
    50: '#614a7b',
    500: '#1f0747',
    950: '#000000',
  },
}
SCSS
$custom: #1f0747;
$custom-light: #614a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0747",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 71
  },
  "hsl": {
    "h": 262.5,
    "s": 82.051,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2211,
    "c": 0.10763,
    "h": 292.1
  },
  "luminance": 0.00898
}

Semantic roles & 50–950 ramp

primary
#1F0747
secondary
#618624
accent
#F82FAD
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0747

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

Preview Lab → · Contrast checker → · Palette generator →

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