#1F0D44#1F0D44

#1F0D44 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.096 H 291.8°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#1F0D44
RGBrgb(31, 13, 68)
HSLhsl(260, 68%, 16%)
HSVhsv(260, 81%, 27%)
CMYKcmyk(54.4%, 80.9%, 0%, 73.3%)
CIE-LABlab(8.96, 24.49, -31.20)
CIE-LCHlch(8.96, 39.66, 308.13°)
OKLaboklab(22.61% 0.0357 -0.0895)
OKLCHoklch(22.61% 0.096 291.8)
XYZxyz(1.7521, 0.9964, 5.5677)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D44 #32440D
analogous
#0D1644 #1F0D44 #3A0D44
triadic
#1F0D44 #441F0D #0D441F
tetradic
#1F0D44 #440D16 #32440D #0D443A
square
#1F0D44 #440D16 #32440D #0D443A
split-complementary
#1F0D44 #443A0D #16440D
monochromatic
#0C051A #0C051A #1F0D44 #361777 #4E21AB

Accessibility & contrast

On white

17.51
#1F0D44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1F0D44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0D44
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D44#FFFFFF#000000##FFFFFF
##1F0D441.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A46
Deuteranopia (green-blind)
#001843
Tritanopia (blue-blind)
#131B27
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f0d44;
/* rgb */ color: rgb(31, 13, 68);
/* oklch */ color: oklch(22.6% 0.096 291.8);
Tailwind
colors: {
  custom: {
    50: '#5f4d78',
    500: '#1f0d44',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d44;
$custom-light: #5f4d78;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d44",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 68
  },
  "hsl": {
    "h": 259.636,
    "s": 67.901,
    "l": 15.882
  },
  "oklch": {
    "l": 0.22605,
    "c": 0.09637,
    "h": 291.8
  },
  "luminance": 0.00997
}

Semantic roles & 50–950 ramp

primary
#1F0D44
secondary
#657F2D
accent
#EB3DB2
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0D44

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

Preview Lab → · Contrast checker → · Palette generator →

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