#1F1049#1F1049

#1F1049 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.099 H 288.4°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#1F1049
RGBrgb(31, 16, 73)
HSLhsl(256, 64%, 17%)
HSVhsv(256, 78%, 29%)
CMYKcmyk(57.5%, 78.1%, 0%, 71.4%)
CIE-LABlab(10.13, 24.32, -32.79)
CIE-LCHlch(10.13, 40.82, 306.56°)
OKLaboklab(23.59% 0.0314 -0.0942)
OKLCHoklch(23.59% 0.099 288.4)
XYZxyz(1.9526, 1.1428, 6.4197)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1049 #3A4910
analogous
#101E49 #1F1049 #3B1049
triadic
#1F1049 #491F10 #10491F
tetradic
#1F1049 #49101E #3A4910 #10493B
square
#1F1049 #49101E #3A4910 #10493B
split-complementary
#1F1049 #493B10 #1E4910
monochromatic
#0B0619 #0B0619 #1F1049 #341B7B #4A26AD

Accessibility & contrast

On white

17.09
#1F1049 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1F1049 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1049
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1049#FFFFFF#000000##FFFFFF
##1F10491.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4B
Deuteranopia (green-blind)
#001A48
Tritanopia (blue-blind)
#0F1F2B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f1049;
/* rgb */ color: rgb(31, 16, 73);
/* oklch */ color: oklch(23.6% 0.099 288.4);
Tailwind
colors: {
  custom: {
    50: '#604f7c',
    500: '#1f1049',
    950: '#000000',
  },
}
SCSS
$custom: #1f1049;
$custom-light: #604f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1049",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 73
  },
  "hsl": {
    "h": 255.789,
    "s": 64.045,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23591,
    "c": 0.09927,
    "h": 288.4
  },
  "luminance": 0.01143
}

Semantic roles & 50–950 ramp

primary
#1F1049
secondary
#6E8332
accent
#E741BB
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050209
muted
#79787B

Preview Lab

Preview with #1F1049

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

Preview Lab → · Contrast checker → · Palette generator →

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