#1F0136#1F0136

#1F0136 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.097 H 304.9°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#1F0136
RGBrgb(31, 1, 54)
HSLhsl(274, 96%, 11%)
HSVhsv(274, 98%, 21%)
CMYKcmyk(42.6%, 98.1%, 0%, 78.8%)
CIE-LABlab(5.23, 26.23, -27.20)
CIE-LCHlch(5.23, 37.79, 313.96°)
OKLaboklab(19.27% 0.0555 -0.0796)
OKLCHoklch(19.27% 0.097 304.9)
XYZxyz(1.2416, 0.5794, 3.5357)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0136 #183601
analogous
#040136 #1F0136 #360132
triadic
#1F0136 #361F01 #01361F
tetradic
#1F0136 #360401 #183601 #013236
square
#1F0136 #360401 #183601 #013236
split-complementary
#1F0136 #323601 #013604
monochromatic
#11011E #11011E #1F0136 #410272 #6403AE

Accessibility & contrast

On white

18.82
#1F0136 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1F0136 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0136
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0136#FFFFFF#000000##FFFFFF
##1F01361.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001137
Deuteranopia (green-blind)
#001135
Tritanopia (blue-blind)
#1A0F1C
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1f0136;
/* rgb */ color: rgb(31, 1, 54);
/* oklch */ color: oklch(19.3% 0.097 304.9);
Tailwind
colors: {
  custom: {
    50: '#5e466d',
    500: '#1f0136',
    950: '#000000',
  },
}
SCSS
$custom: #1f0136;
$custom-light: #5e466d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0136",
  "rgb": {
    "r": 31,
    "g": 1,
    "b": 54
  },
  "hsl": {
    "h": 273.962,
    "s": 96.364,
    "l": 10.784
  },
  "oklch": {
    "l": 0.19272,
    "c": 0.09707,
    "h": 304.9
  },
  "luminance": 0.00579
}

Semantic roles & 50–950 ramp

primary
#1F0136
secondary
#437B18
accent
#FF2986
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040007
muted
#79777A

Preview Lab

Preview with #1F0136

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

Preview Lab → · Contrast checker → · Palette generator →

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