#1F0E45#1F0E45

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

Color values

HEX#1F0E45
RGBrgb(31, 14, 69)
HSLhsl(259, 66%, 16%)
HSVhsv(259, 80%, 27%)
CMYKcmyk(55.1%, 79.7%, 0%, 72.9%)
CIE-LABlab(9.28, 24.21, -31.38)
CIE-LCHlch(9.28, 39.64, 307.65°)
OKLaboklab(22.86% 0.0344 -0.09)
OKLCHoklch(22.86% 0.096 290.9)
XYZxyz(1.7960, 1.0350, 5.7342)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E45 #34450E
analogous
#0E1945 #1F0E45 #3B0E45
triadic
#1F0E45 #451F0E #0E451F
tetradic
#1F0E45 #450E19 #34450E #0E453B
square
#1F0E45 #450E19 #34450E #0E453B
split-complementary
#1F0E45 #453B0E #19450E
monochromatic
#0B0519 #0B0519 #1F0E45 #361878 #4D23AB

Accessibility & contrast

On white

17.40
#1F0E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E45
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E45#FFFFFF#000000##FFFFFF
##1F0E451.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0e45;
/* rgb */ color: rgb(31, 14, 69);
/* oklch */ color: oklch(22.9% 0.096 290.9);
Tailwind
colors: {
  custom: {
    50: '#5f4e79',
    500: '#1f0e45',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e45;
$custom-light: #5f4e79;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e45",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 69
  },
  "hsl": {
    "h": 258.545,
    "s": 66.265,
    "l": 16.275
  },
  "oklch": {
    "l": 0.22862,
    "c": 0.09639,
    "h": 290.9
  },
  "luminance": 0.01035
}

Semantic roles & 50–950 ramp

primary
#1F0E45
secondary
#67802F
accent
#E93FB4
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0E45

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

Preview Lab → · Contrast checker → · Palette generator →

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