#1F0341#1F0341

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

Color values

HEX#1F0341
RGBrgb(31, 3, 65)
HSLhsl(267, 91%, 13%)
HSVhsv(267, 95%, 25%)
CMYKcmyk(52.3%, 95.4%, 0%, 74.5%)
CIE-LABlab(6.67, 29.14, -32.83)
CIE-LCHlch(6.67, 43.89, 311.59°)
OKLaboklab(20.85% 0.0474 -0.0945)
OKLCHoklch(20.85% 0.106 296.6)
XYZxyz(1.5515, 0.7380, 5.0607)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0341 #254103
analogous
#030641 #1F0341 #3E0341
triadic
#1F0341 #411F03 #03411F
tetradic
#1F0341 #410306 #254103 #03413E
square
#1F0341 #410306 #254103 #03413E
split-complementary
#1F0341 #413E03 #064103
monochromatic
#0E011D #0E011D #1F0341 #3B067B #5708B6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F0341#FFFFFF#000000##FFFFFF
##1F03411.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)
#001543
Deuteranopia (green-blind)
#001440
Tritanopia (blue-blind)
#151523
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f0341;
/* rgb */ color: rgb(31, 3, 65);
/* oklch */ color: oklch(20.9% 0.106 296.6);
Tailwind
colors: {
  custom: {
    50: '#604776',
    500: '#1f0341',
    950: '#000000',
  },
}
SCSS
$custom: #1f0341;
$custom-light: #604776;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0341",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 65
  },
  "hsl": {
    "h": 267.097,
    "s": 91.176,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20851,
    "c": 0.10577,
    "h": 296.6
  },
  "luminance": 0.00738
}

Semantic roles & 50–950 ramp

primary
#1F0341
secondary
#55831D
accent
#FF299E
background
#F5F4F7
surface
#EAE6ED
border
#C6C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #1F0341

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

Preview Lab → · Contrast checker → · Palette generator →

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