#1F0944#1F0944

#1F0944 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.101 H 293.1°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#1F0944
RGBrgb(31, 9, 68)
HSLhsl(262, 77%, 15%)
HSVhsv(262, 87%, 27%)
CMYKcmyk(54.4%, 86.8%, 0%, 73.3%)
CIE-LABlab(8.16, 26.75, -32.50)
CIE-LCHlch(8.16, 42.10, 309.46°)
OKLaboklab(22.04% 0.0398 -0.0933)
OKLCHoklch(22.04% 0.101 293.1)
XYZxyz(1.7059, 0.9040, 5.5523)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0944 #2E4409
analogous
#091044 #1F0944 #3C0944
triadic
#1F0944 #441F09 #09441F
tetradic
#1F0944 #440910 #2E4409 #09443C
square
#1F0944 #440910 #2E4409 #09443C
split-complementary
#1F0944 #443C09 #104409
monochromatic
#0C041B #0C041B #1F0944 #38107A #5017B0

Accessibility & contrast

On white

17.78
#1F0944 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0944
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0944#FFFFFF#000000##FFFFFF
##1F09441.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001946
Deuteranopia (green-blind)
#001743
Tritanopia (blue-blind)
#131926
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0944;
/* rgb */ color: rgb(31, 9, 68);
/* oklch */ color: oklch(22.0% 0.101 293.1);
Tailwind
colors: {
  custom: {
    50: '#604b79',
    500: '#1f0944',
    950: '#000000',
  },
}
SCSS
$custom: #1f0944;
$custom-light: #604b79;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0944",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 68
  },
  "hsl": {
    "h": 262.373,
    "s": 76.623,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22044,
    "c": 0.1014,
    "h": 293.1
  },
  "luminance": 0.00904
}

Semantic roles & 50–950 ramp

primary
#1F0944
secondary
#608227
accent
#F335AC
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0944

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

Preview Lab → · Contrast checker → · Palette generator →

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