#1F0835#1F0835

#1F0835 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.083 H 303.0°. Best body text is #FFFFFF at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#1F0835
RGBrgb(31, 8, 53)
HSLhsl(271, 74%, 12%)
HSVhsv(271, 85%, 21%)
CMYKcmyk(41.5%, 84.9%, 0%, 79.2%)
CIE-LABlab(6.52, 22.33, -24.39)
CIE-LCHlch(6.52, 33.06, 312.47°)
OKLaboklab(20.34% 0.0454 -0.07)
OKLCHoklch(20.34% 0.083 303)
XYZxyz(1.2944, 0.7220, 3.4386)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0835 #1E3508
analogous
#090835 #1F0835 #350835
triadic
#1F0835 #351F08 #08351F
tetradic
#1F0835 #350908 #1E3508 #083535
square
#1F0835 #350908 #1E3508 #083535
split-complementary
#1F0835 #353508 #083509
monochromatic
#10041B #10041B #1F0835 #3E106A #5D189F

Accessibility & contrast

On white

18.35
#1F0835 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1F0835 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0835
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0835#FFFFFF#000000##FFFFFF
##1F08351.0018.351.1418.35
#FFFFFF18.351.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001436
Deuteranopia (green-blind)
#001434
Tritanopia (blue-blind)
#1B131D
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0835;
/* rgb */ color: rgb(31, 8, 53);
/* oklch */ color: oklch(20.3% 0.083 303.0);
Tailwind
colors: {
  custom: {
    50: '#5d4a6d',
    500: '#1f0835',
    950: '#000000',
  },
}
SCSS
$custom: #1f0835;
$custom-light: #5d4a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0835",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 53
  },
  "hsl": {
    "h": 270.667,
    "s": 73.77,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20344,
    "c": 0.08338,
    "h": 303
  },
  "luminance": 0.00722
}

Semantic roles & 50–950 ramp

primary
#1F0835
secondary
#4C7425
accent
#F03792
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0835

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

Preview Lab → · Contrast checker → · Palette generator →

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