#1F0335#1F0335

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

Color values

HEX#1F0335
RGBrgb(31, 3, 53)
HSLhsl(274, 89%, 11%)
HSVhsv(274, 94%, 21%)
CMYKcmyk(41.5%, 94.3%, 0%, 79.2%)
CIE-LABlab(5.54, 24.86, -25.97)
CIE-LCHlch(5.54, 35.95, 313.75°)
OKLaboklab(19.51% 0.0527 -0.0756)
OKLCHoklch(19.51% 0.092 304.9)
XYZxyz(1.2401, 0.6135, 3.4206)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0335 #193503
analogous
#060335 #1F0335 #350332
triadic
#1F0335 #351F03 #03351F
tetradic
#1F0335 #350603 #193503 #033235
square
#1F0335 #350603 #193503 #033235
split-complementary
#1F0335 #323503 #033506
monochromatic
#11021D #11021D #1F0335 #41066F #630AA9

Accessibility & contrast

On white

18.71
#1F0335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0335
18.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0335#FFFFFF#000000##FFFFFF
##1F03351.0018.711.1218.71
#FFFFFF18.711.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001136
Deuteranopia (green-blind)
#001234
Tritanopia (blue-blind)
#1B101C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f0335;
/* rgb */ color: rgb(31, 3, 53);
/* oklch */ color: oklch(19.5% 0.092 304.9);
Tailwind
colors: {
  custom: {
    50: '#5d476d',
    500: '#1f0335',
    950: '#000000',
  },
}
SCSS
$custom: #1f0335;
$custom-light: #5d476d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0335",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 53
  },
  "hsl": {
    "h": 273.6,
    "s": 89.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.19514,
    "c": 0.09215,
    "h": 304.9
  },
  "luminance": 0.00613
}

Semantic roles & 50–950 ramp

primary
#1F0335
secondary
#44781C
accent
#FF2987
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040007
muted
#79777A

Preview Lab

Preview with #1F0335

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

Preview Lab → · Contrast checker → · Palette generator →

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