#1F0943#1F0943

#1F0943 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.100 H 293.6°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#1F0943
RGBrgb(31, 9, 67)
HSLhsl(263, 76%, 15%)
HSVhsv(263, 87%, 26%)
CMYKcmyk(53.7%, 86.6%, 0%, 73.7%)
CIE-LABlab(8.06, 26.44, -31.97)
CIE-LCHlch(8.06, 41.49, 309.59°)
OKLaboklab(21.94% 0.0401 -0.0917)
OKLCHoklch(21.94% 0.1 293.6)
XYZxyz(1.6756, 0.8919, 5.3930)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0943 #2D4309
analogous
#091043 #1F0943 #3C0943
triadic
#1F0943 #431F09 #09431F
tetradic
#1F0943 #430910 #2D4309 #09433C
square
#1F0943 #430910 #2D4309 #09433C
split-complementary
#1F0943 #433C09 #104309
monochromatic
#0C041B #0C041B #1F0943 #381079 #5117AF

Accessibility & contrast

On white

17.82
#1F0943 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0943
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0943#FFFFFF#000000##FFFFFF
##1F09431.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001845
Deuteranopia (green-blind)
#001742
Tritanopia (blue-blind)
#141926
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0943;
/* rgb */ color: rgb(31, 9, 67);
/* oklch */ color: oklch(21.9% 0.100 293.6);
Tailwind
colors: {
  custom: {
    50: '#604b78',
    500: '#1f0943',
    950: '#000000',
  },
}
SCSS
$custom: #1f0943;
$custom-light: #604b78;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0943",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 67
  },
  "hsl": {
    "h": 262.759,
    "s": 76.316,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21936,
    "c": 0.10011,
    "h": 293.6
  },
  "luminance": 0.00892
}

Semantic roles & 50–950 ramp

primary
#1F0943
secondary
#5F8127
accent
#F335AB
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0943

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

Preview Lab → · Contrast checker → · Palette generator →

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