#1F0741#1F0741

#1F0741 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.100 H 295.3°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#1F0741
RGBrgb(31, 7, 65)
HSLhsl(265, 81%, 14%)
HSVhsv(265, 89%, 25%)
CMYKcmyk(52.3%, 89.2%, 0%, 74.5%)
CIE-LABlab(7.45, 26.92, -31.54)
CIE-LCHlch(7.45, 41.47, 310.48°)
OKLaboklab(21.44% 0.0429 -0.0905)
OKLCHoklch(21.44% 0.1 295.3)
XYZxyz(1.5949, 0.8249, 5.0752)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0741 #294107
analogous
#070C41 #1F0741 #3C0741
triadic
#1F0741 #411F07 #07411F
tetradic
#1F0741 #41070C #294107 #07413C
square
#1F0741 #41070C #294107 #07413C
split-complementary
#1F0741 #413C07 #0C4107
monochromatic
#0D031C #0D031C #1F0741 #390D78 #5413B0

Accessibility & contrast

On white

18.03
#1F0741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0741
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0741#FFFFFF#000000##FFFFFF
##1F07411.0018.031.1718.03
#FFFFFF18.031.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001743
Deuteranopia (green-blind)
#001640
Tritanopia (blue-blind)
#151724
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f0741;
/* rgb */ color: rgb(31, 7, 65);
/* oklch */ color: oklch(21.4% 0.100 295.3);
Tailwind
colors: {
  custom: {
    50: '#5f4a76',
    500: '#1f0741',
    950: '#000000',
  },
}
SCSS
$custom: #1f0741;
$custom-light: #5f4a76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0741",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 65
  },
  "hsl": {
    "h": 264.828,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21438,
    "c": 0.10016,
    "h": 295.3
  },
  "luminance": 0.00825
}

Semantic roles & 50–950 ramp

primary
#1F0741
secondary
#5A8024
accent
#F731A5
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F0741

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

Preview Lab → · Contrast checker → · Palette generator →

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