#1F0437#1F0437

#1F0437 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.093 H 303.0°. Best body text is #FFFFFF at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#1F0437
RGBrgb(31, 4, 55)
HSLhsl(272, 86%, 12%)
HSVhsv(272, 93%, 22%)
CMYKcmyk(43.6%, 92.7%, 0%, 78.4%)
CIE-LABlab(5.91, 25.08, -26.84)
CIE-LCHlch(5.91, 36.74, 313.06°)
OKLaboklab(19.9% 0.0504 -0.0777)
OKLCHoklch(19.9% 0.093 303)
XYZxyz(1.2979, 0.6540, 3.6715)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0437 #1C3704
analogous
#060437 #1F0437 #370436
triadic
#1F0437 #371F04 #04371F
tetradic
#1F0437 #370604 #1C3704 #043637
square
#1F0437 #370604 #1C3704 #043637
split-complementary
#1F0437 #363704 #043706
monochromatic
#10021D #10021D #1F0437 #3F0870 #5F0CA9

Accessibility & contrast

On white

18.57
#1F0437 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0437
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0437#FFFFFF#000000##FFFFFF
##1F04371.0018.571.1318.57
#FFFFFF18.571.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001338
Deuteranopia (green-blind)
#001336
Tritanopia (blue-blind)
#1A111D
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f0437;
/* rgb */ color: rgb(31, 4, 55);
/* oklch */ color: oklch(19.9% 0.093 303.0);
Tailwind
colors: {
  custom: {
    50: '#5e486e',
    500: '#1f0437',
    950: '#000000',
  },
}
SCSS
$custom: #1f0437;
$custom-light: #5e486e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0437",
  "rgb": {
    "r": 31,
    "g": 4,
    "b": 55
  },
  "hsl": {
    "h": 271.765,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19896,
    "c": 0.09264,
    "h": 303
  },
  "luminance": 0.00654
}

Semantic roles & 50–950 ramp

primary
#1F0437
secondary
#49791E
accent
#FD2B8E
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1F0437

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

Preview Lab → · Contrast checker → · Palette generator →

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