#1F0430#1F0430

#1F0430 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.084 H 308.7°. Best body text is #FFFFFF at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#1F0430
RGBrgb(31, 4, 48)
HSLhsl(277, 85%, 10%)
HSVhsv(277, 92%, 19%)
CMYKcmyk(35.4%, 91.7%, 0%, 81.2%)
CIE-LABlab(5.34, 22.52, -22.58)
CIE-LCHlch(5.34, 31.89, 314.92°)
OKLaboklab(19.18% 0.0528 -0.0659)
OKLCHoklch(19.18% 0.084 308.7)
XYZxyz(1.1419, 0.5916, 2.8498)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0430 #153004
analogous
#090430 #1F0430 #30042B
triadic
#1F0430 #301F04 #04301F
tetradic
#1F0430 #300904 #153004 #042B30
square
#1F0430 #300904 #153004 #042B30
split-complementary
#1F0430 #2B3004 #043009
monochromatic
#12021C #12021C #1F0430 #430968 #680DA1

Accessibility & contrast

On white

18.78
#1F0430 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0430
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0430#FFFFFF#000000##FFFFFF
##1F04301.0018.781.1218.78
#FFFFFF18.781.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001131
Deuteranopia (green-blind)
#00122F
Tritanopia (blue-blind)
#1C0E19
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f0430;
/* rgb */ color: rgb(31, 4, 48);
/* oklch */ color: oklch(19.2% 0.084 308.7);
Tailwind
colors: {
  custom: {
    50: '#5c4868',
    500: '#1f0430',
    950: '#000000',
  },
}
SCSS
$custom: #1f0430;
$custom-light: #5c4868;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0430",
  "rgb": {
    "r": 31,
    "g": 4,
    "b": 48
  },
  "hsl": {
    "h": 276.818,
    "s": 84.615,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19178,
    "c": 0.08449,
    "h": 308.7
  },
  "luminance": 0.00592
}

Semantic roles & 50–950 ramp

primary
#1F0430
secondary
#3E721D
accent
#FB2D7C
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F0430

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

Preview Lab → · Contrast checker → · Palette generator →

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