#1F0F45#1F0F45

#1F0F45 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.0% C 0.095 H 290.5°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#1F0F45
RGBrgb(31, 15, 69)
HSLhsl(258, 64%, 16%)
HSVhsv(258, 78%, 27%)
CMYKcmyk(55.1%, 78.3%, 0%, 72.9%)
CIE-LABlab(9.50, 23.59, -31.02)
CIE-LCHlch(9.50, 38.97, 307.26°)
OKLaboklab(23.02% 0.0333 -0.089)
OKLCHoklch(23.02% 0.095 290.5)
XYZxyz(1.8098, 1.0626, 5.7388)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F45 #35450F
analogous
#0F1A45 #1F0F45 #3A0F45
triadic
#1F0F45 #451F0F #0F451F
tetradic
#1F0F45 #450F1A #35450F #0F453A
square
#1F0F45 #450F1A #35450F #0F453A
split-complementary
#1F0F45 #453A0F #1A450F
monochromatic
#0B0519 #0B0519 #1F0F45 #361A77 #4C25AA

Accessibility & contrast

On white

17.32
#1F0F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F45
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F45#FFFFFF#000000##FFFFFF
##1F0F451.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B47
Deuteranopia (green-blind)
#001944
Tritanopia (blue-blind)
#121D28
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f0f45;
/* rgb */ color: rgb(31, 15, 69);
/* oklch */ color: oklch(23.0% 0.095 290.5);
Tailwind
colors: {
  custom: {
    50: '#5f4e79',
    500: '#1f0f45',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f45;
$custom-light: #5f4e79;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f45",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 257.778,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2302,
    "c": 0.09501,
    "h": 290.5
  },
  "luminance": 0.01063
}

Semantic roles & 50–950 ramp

primary
#1F0F45
secondary
#687F30
accent
#E741B6
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050209
muted
#79787B

Preview Lab

Preview with #1F0F45

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

Preview Lab → · Contrast checker → · Palette generator →

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