#1F0D45#1F0D45

#1F0D45 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.098 H 291.3°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#1F0D45
RGBrgb(31, 13, 69)
HSLhsl(259, 68%, 16%)
HSVhsv(259, 81%, 27%)
CMYKcmyk(55.1%, 81.2%, 0%, 72.9%)
CIE-LABlab(9.06, 24.81, -31.73)
CIE-LCHlch(9.06, 40.28, 308.02°)
OKLaboklab(22.71% 0.0355 -0.0911)
OKLCHoklch(22.71% 0.098 291.3)
XYZxyz(1.7829, 1.0088, 5.7298)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D45 #33450D
analogous
#0D1745 #1F0D45 #3B0D45
triadic
#1F0D45 #451F0D #0D451F
tetradic
#1F0D45 #450D17 #33450D #0D453B
square
#1F0D45 #450D17 #33450D #0D453B
split-complementary
#1F0D45 #453B0D #17450D
monochromatic
#0C051A #0C051A #1F0D45 #361778 #4D20AC

Accessibility & contrast

On white

17.47
#1F0D45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0D45
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D45#FFFFFF#000000##FFFFFF
##1F0D451.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A47
Deuteranopia (green-blind)
#001844
Tritanopia (blue-blind)
#121C28
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f0d45;
/* rgb */ color: rgb(31, 13, 69);
/* oklch */ color: oklch(22.7% 0.098 291.3);
Tailwind
colors: {
  custom: {
    50: '#604d79',
    500: '#1f0d45',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d45;
$custom-light: #604d79;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d45",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 69
  },
  "hsl": {
    "h": 259.286,
    "s": 68.293,
    "l": 16.078
  },
  "oklch": {
    "l": 0.22709,
    "c": 0.09773,
    "h": 291.3
  },
  "luminance": 0.01009
}

Semantic roles & 50–950 ramp

primary
#1F0D45
secondary
#66802D
accent
#EB3DB3
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0D45

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

Preview Lab → · Contrast checker → · Palette generator →

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