#1F0435#1F0435

#1F0435 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.7% C 0.090 H 304.5°. Best body text is #FFFFFF at 18.63:1 contrast (WCAG AA passes).

Color values

HEX#1F0435
RGBrgb(31, 4, 53)
HSLhsl(273, 86%, 11%)
HSVhsv(273, 92%, 21%)
CMYKcmyk(41.5%, 92.5%, 0%, 79.2%)
CIE-LABlab(5.74, 24.35, -25.65)
CIE-LCHlch(5.74, 35.37, 313.51°)
OKLaboklab(19.69% 0.0512 -0.0744)
OKLCHoklch(19.69% 0.09 304.5)
XYZxyz(1.2509, 0.6352, 3.4242)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0435 #1A3504
analogous
#060435 #1F0435 #350432
triadic
#1F0435 #351F04 #04351F
tetradic
#1F0435 #350604 #1A3504 #043235
square
#1F0435 #350604 #1A3504 #043235
split-complementary
#1F0435 #323504 #043506
monochromatic
#11021C #11021C #1F0435 #40086E #620DA7

Accessibility & contrast

On white

18.63
#1F0435 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1F0435 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0435
18.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0435#FFFFFF#000000##FFFFFF
##1F04351.0018.631.1318.63
#FFFFFF18.631.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001236
Deuteranopia (green-blind)
#001334
Tritanopia (blue-blind)
#1B101C
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f0435;
/* rgb */ color: rgb(31, 4, 53);
/* oklch */ color: oklch(19.7% 0.090 304.5);
Tailwind
colors: {
  custom: {
    50: '#5d486d',
    500: '#1f0435',
    950: '#000000',
  },
}
SCSS
$custom: #1f0435;
$custom-light: #5d486d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0435",
  "rgb": {
    "r": 31,
    "g": 4,
    "b": 53
  },
  "hsl": {
    "h": 273.061,
    "s": 85.965,
    "l": 11.176
  },
  "oklch": {
    "l": 0.19686,
    "c": 0.0903,
    "h": 304.5
  },
  "luminance": 0.00635
}

Semantic roles & 50–950 ramp

primary
#1F0435
secondary
#46771E
accent
#FC2C89
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040007
muted
#79777A

Preview Lab

Preview with #1F0435

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

Preview Lab → · Contrast checker → · Palette generator →

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