#1F0336#1F0336

#1F0336 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.6% C 0.093 H 304.1°. Best body text is #FFFFFF at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#1F0336
RGBrgb(31, 3, 54)
HSLhsl(273, 89%, 11%)
HSVhsv(273, 94%, 21%)
CMYKcmyk(42.6%, 94.4%, 0%, 78.8%)
CIE-LABlab(5.63, 25.22, -26.57)
CIE-LCHlch(5.63, 36.63, 313.52°)
OKLaboklab(19.62% 0.0523 -0.0772)
OKLCHoklch(19.62% 0.093 304.1)
XYZxyz(1.2633, 0.6228, 3.5430)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0336 #1A3603
analogous
#050336 #1F0336 #360333
triadic
#1F0336 #361F03 #03361F
tetradic
#1F0336 #360503 #1A3603 #033336
square
#1F0336 #360503 #1A3603 #033336
split-complementary
#1F0336 #333603 #033605
monochromatic
#11021D #11021D #1F0336 #400670 #6209AA

Accessibility & contrast

On white

18.67
#1F0336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0336
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0336#FFFFFF#000000##FFFFFF
##1F03361.0018.671.1218.67
#FFFFFF18.671.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001237
Deuteranopia (green-blind)
#001235
Tritanopia (blue-blind)
#1A101C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f0336;
/* rgb */ color: rgb(31, 3, 54);
/* oklch */ color: oklch(19.6% 0.093 304.1);
Tailwind
colors: {
  custom: {
    50: '#5e476d',
    500: '#1f0336',
    950: '#000000',
  },
}
SCSS
$custom: #1f0336;
$custom-light: #5e476d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0336",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 272.941,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.19621,
    "c": 0.09329,
    "h": 304.1
  },
  "luminance": 0.00623
}

Semantic roles & 50–950 ramp

primary
#1F0336
secondary
#46791C
accent
#FF2989
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040007
muted
#79777A

Preview Lab

Preview with #1F0336

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

Preview Lab → · Contrast checker → · Palette generator →

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