#1F0334#1F0334

#1F0334 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.091 H 305.7°. Best body text is #FFFFFF at 18.74:1 contrast (WCAG AA passes).

Color values

HEX#1F0334
RGBrgb(31, 3, 52)
HSLhsl(274, 89%, 11%)
HSVhsv(274, 94%, 20%)
CMYKcmyk(40.4%, 94.2%, 0%, 79.6%)
CIE-LABlab(5.46, 24.49, -25.36)
CIE-LCHlch(5.46, 35.25, 313.99°)
OKLaboklab(19.41% 0.0531 -0.0739)
OKLCHoklch(19.41% 0.091 305.7)
XYZxyz(1.2173, 0.6044, 3.3007)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0334 #183403
analogous
#070334 #1F0334 #340330
triadic
#1F0334 #341F03 #03341F
tetradic
#1F0334 #340703 #183403 #033034
square
#1F0334 #340703 #183403 #033034
split-complementary
#1F0334 #303403 #033407
monochromatic
#11021D #11021D #1F0334 #41066E #640AA8

Accessibility & contrast

On white

18.74
#1F0334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0334
18.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0334#FFFFFF#000000##FFFFFF
##1F03341.0018.741.1218.74
#FFFFFF18.741.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001135
Deuteranopia (green-blind)
#001233
Tritanopia (blue-blind)
#1B0F1B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f0334;
/* rgb */ color: rgb(31, 3, 52);
/* oklch */ color: oklch(19.4% 0.091 305.7);
Tailwind
colors: {
  custom: {
    50: '#5d476c',
    500: '#1f0334',
    950: '#000000',
  },
}
SCSS
$custom: #1f0334;
$custom-light: #5d476c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0334",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 274.286,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.19409,
    "c": 0.09103,
    "h": 305.7
  },
  "luminance": 0.00604
}

Semantic roles & 50–950 ramp

primary
#1F0334
secondary
#43771C
accent
#FF2985
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040007
muted
#79777A

Preview Lab

Preview with #1F0334

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

Preview Lab → · Contrast checker → · Palette generator →

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