#1F0F44#1F0F44

#1F0F44 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 22.9% C 0.094 H 291.0°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#1F0F44
RGBrgb(31, 15, 68)
HSLhsl(258, 64%, 16%)
HSVhsv(258, 78%, 27%)
CMYKcmyk(54.4%, 77.9%, 0%, 73.3%)
CIE-LABlab(9.40, 23.26, -30.48)
CIE-LCHlch(9.40, 38.34, 307.35°)
OKLaboklab(22.92% 0.0336 -0.0874)
OKLCHoklch(22.92% 0.094 291)
XYZxyz(1.7790, 1.0502, 5.5767)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F44 #34440F
analogous
#0F1A44 #1F0F44 #3A0F44
triadic
#1F0F44 #441F0F #0F441F
tetradic
#1F0F44 #440F1A #34440F #0F443A
square
#1F0F44 #440F1A #34440F #0F443A
split-complementary
#1F0F44 #443A0F #1A440F
monochromatic
#0B0619 #0B0619 #1F0F44 #361A76 #4D25A8

Accessibility & contrast

On white

17.36
#1F0F44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1F0F44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F44
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F44#FFFFFF#000000##FFFFFF
##1F0F441.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B46
Deuteranopia (green-blind)
#001943
Tritanopia (blue-blind)
#131C28
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f0f44;
/* rgb */ color: rgb(31, 15, 68);
/* oklch */ color: oklch(22.9% 0.094 291.0);
Tailwind
colors: {
  custom: {
    50: '#5f4e78',
    500: '#1f0f44',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f44;
$custom-light: #5f4e78;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f44",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 68
  },
  "hsl": {
    "h": 258.113,
    "s": 63.855,
    "l": 16.275
  },
  "oklch": {
    "l": 0.22919,
    "c": 0.0936,
    "h": 291
  },
  "luminance": 0.0105
}

Semantic roles & 50–950 ramp

primary
#1F0F44
secondary
#677E30
accent
#E741B5
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050209
muted
#79787B

Preview Lab

Preview with #1F0F44

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

Preview Lab → · Contrast checker → · Palette generator →

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