#1F0739#1F0739

#1F0739 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.090 H 300.4°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#1F0739
RGBrgb(31, 7, 57)
HSLhsl(269, 78%, 13%)
HSVhsv(269, 88%, 22%)
CMYKcmyk(45.6%, 87.7%, 0%, 77.6%)
CIE-LABlab(6.67, 24.23, -27.06)
CIE-LCHlch(6.67, 36.33, 311.85°)
OKLaboklab(20.59% 0.0456 -0.0777)
OKLCHoklch(20.59% 0.09 300.4)
XYZxyz(1.3794, 0.7387, 3.9400)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0739 #213907
analogous
#070839 #1F0739 #380739
triadic
#1F0739 #391F07 #07391F
tetradic
#1F0739 #390708 #213907 #073938
square
#1F0739 #390708 #213907 #073938
split-complementary
#1F0739 #393807 #083907
monochromatic
#0F031B #0F031B #1F0739 #3D0E70 #5A14A6

Accessibility & contrast

On white

18.30
#1F0739 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1F0739 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0739
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0739#FFFFFF#000000##FFFFFF
##1F07391.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#001438
Tritanopia (blue-blind)
#19141F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f0739;
/* rgb */ color: rgb(31, 7, 57);
/* oklch */ color: oklch(20.6% 0.090 300.4);
Tailwind
colors: {
  custom: {
    50: '#5e4970',
    500: '#1f0739',
    950: '#000000',
  },
}
SCSS
$custom: #1f0739;
$custom-light: #5e4970;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0739",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 57
  },
  "hsl": {
    "h": 268.8,
    "s": 78.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.20587,
    "c": 0.09011,
    "h": 300.4
  },
  "luminance": 0.00739
}

Semantic roles & 50–950 ramp

primary
#1F0739
secondary
#507923
accent
#F53398
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #1F0739

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

Preview Lab → · Contrast checker → · Palette generator →

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