#1F0F49#1F0F49

#1F0F49 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.101 H 288.8°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#1F0F49
RGBrgb(31, 15, 73)
HSLhsl(257, 66%, 17%)
HSVhsv(257, 79%, 29%)
CMYKcmyk(57.5%, 79.5%, 0%, 71.4%)
CIE-LABlab(9.91, 24.93, -33.16)
CIE-LCHlch(9.91, 41.49, 306.94°)
OKLaboklab(23.43% 0.0324 -0.0952)
OKLCHoklch(23.43% 0.101 288.8)
XYZxyz(1.9381, 1.1139, 6.4149)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F49 #39490F
analogous
#0F1C49 #1F0F49 #3C0F49
triadic
#1F0F49 #491F0F #0F491F
tetradic
#1F0F49 #490F1C #39490F #0F493C
square
#1F0F49 #490F1C #39490F #0F493C
split-complementary
#1F0F49 #493C0F #1C490F
monochromatic
#0B0519 #0B0519 #1F0F49 #35197C #4A24AF

Accessibility & contrast

On white

17.17
#1F0F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#1F0F49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F49
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F49#FFFFFF#000000##FFFFFF
##1F0F491.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4B
Deuteranopia (green-blind)
#001A48
Tritanopia (blue-blind)
#0F1E2A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0f49;
/* rgb */ color: rgb(31, 15, 73);
/* oklch */ color: oklch(23.4% 0.101 288.8);
Tailwind
colors: {
  custom: {
    50: '#604f7c',
    500: '#1f0f49',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f49;
$custom-light: #604f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f49",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 73
  },
  "hsl": {
    "h": 256.552,
    "s": 65.909,
    "l": 17.255
  },
  "oklch": {
    "l": 0.23433,
    "c": 0.10061,
    "h": 288.8
  },
  "luminance": 0.01114
}

Semantic roles & 50–950 ramp

primary
#1F0F49
secondary
#6C8330
accent
#E93FBA
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050209
muted
#79787B

Preview Lab

Preview with #1F0F49

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

Preview Lab → · Contrast checker → · Palette generator →

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