#1F0D43#1F0D43

#1F0D43 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.095 H 292.3°. Best body text is #FFFFFF at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#1F0D43
RGBrgb(31, 13, 67)
HSLhsl(260, 68%, 16%)
HSVhsv(260, 81%, 26%)
CMYKcmyk(53.7%, 80.6%, 0%, 73.7%)
CIE-LABlab(8.86, 24.16, -30.66)
CIE-LCHlch(8.86, 39.03, 308.24°)
OKLaboklab(22.5% 0.036 -0.0879)
OKLCHoklch(22.5% 0.095 292.3)
XYZxyz(1.7218, 0.9843, 5.4084)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0D43 #31430D
analogous
#0D1643 #1F0D43 #3A0D43
triadic
#1F0D43 #431F0D #0D431F
tetradic
#1F0D43 #430D16 #31430D #0D433A
square
#1F0D43 #430D16 #31430D #0D433A
split-complementary
#1F0D43 #433A0D #16430D
monochromatic
#0C051A #0C051A #1F0D43 #371776 #4E21AA

Accessibility & contrast

On white

17.55
#1F0D43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0D43
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0D43#FFFFFF#000000##FFFFFF
##1F0D431.0017.551.2017.55
#FFFFFF17.551.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A45
Deuteranopia (green-blind)
#001842
Tritanopia (blue-blind)
#141B27
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f0d43;
/* rgb */ color: rgb(31, 13, 67);
/* oklch */ color: oklch(22.5% 0.095 292.3);
Tailwind
colors: {
  custom: {
    50: '#5f4d78',
    500: '#1f0d43',
    950: '#000000',
  },
}
SCSS
$custom: #1f0d43;
$custom-light: #5f4d78;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0d43",
  "rgb": {
    "r": 31,
    "g": 13,
    "b": 67
  },
  "hsl": {
    "h": 260,
    "s": 67.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.22502,
    "c": 0.09499,
    "h": 292.3
  },
  "luminance": 0.00984
}

Semantic roles & 50–950 ramp

primary
#1F0D43
secondary
#637E2D
accent
#EA3DB1
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0D43

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

Preview Lab → · Contrast checker → · Palette generator →

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