#1F0738#1F0738

#1F0738 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.089 H 301.1°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#1F0738
RGBrgb(31, 7, 56)
HSLhsl(269, 78%, 12%)
HSVhsv(269, 88%, 22%)
CMYKcmyk(44.6%, 87.5%, 0%, 78%)
CIE-LABlab(6.58, 23.89, -26.48)
CIE-LCHlch(6.58, 35.66, 312.05°)
OKLaboklab(20.49% 0.0459 -0.0761)
OKLCHoklch(20.49% 0.089 301.1)
XYZxyz(1.3547, 0.7288, 3.8099)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0738 #203807
analogous
#070738 #1F0738 #380738
triadic
#1F0738 #381F07 #07381F
tetradic
#1F0738 #380707 #203807 #073838
square
#1F0738 #380707 #203807 #073838
split-complementary
#1F0738 #383807 #073807
monochromatic
#0F031B #0F031B #1F0738 #3D0E6E #5B15A5

Accessibility & contrast

On white

18.33
#1F0738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0738
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0738#FFFFFF#000000##FFFFFF
##1F07381.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001439
Deuteranopia (green-blind)
#001437
Tritanopia (blue-blind)
#19131F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f0738;
/* rgb */ color: rgb(31, 7, 56);
/* oklch */ color: oklch(20.5% 0.089 301.1);
Tailwind
colors: {
  custom: {
    50: '#5e496f',
    500: '#1f0738',
    950: '#000000',
  },
}
SCSS
$custom: #1f0738;
$custom-light: #5e496f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0738",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 56
  },
  "hsl": {
    "h": 269.388,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20485,
    "c": 0.08885,
    "h": 301.1
  },
  "luminance": 0.00729
}

Semantic roles & 50–950 ramp

primary
#1F0738
secondary
#4E7823
accent
#F43496
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0738

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

Preview Lab → · Contrast checker → · Palette generator →

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