#1F0134#1F0134

#1F0134 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.1% C 0.095 H 306.5°. Best body text is #FFFFFF at 18.88:1 contrast (WCAG AA passes).

Color values

HEX#1F0134
RGBrgb(31, 1, 52)
HSLhsl(275, 96%, 10%)
HSVhsv(275, 98%, 20%)
CMYKcmyk(40.4%, 98.1%, 0%, 79.6%)
CIE-LABlab(5.07, 25.48, -25.99)
CIE-LCHlch(5.07, 36.39, 314.43°)
OKLaboklab(19.05% 0.0565 -0.0764)
OKLCHoklch(19.05% 0.095 306.5)
XYZxyz(1.1956, 0.5610, 3.2934)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0134 #163401
analogous
#050134 #1F0134 #34012F
triadic
#1F0134 #341F01 #01341F
tetradic
#1F0134 #340501 #163401 #012F34
square
#1F0134 #340501 #163401 #012F34
split-complementary
#1F0134 #2F3401 #013405
monochromatic
#12011E #12011E #1F0134 #430270 #6703AC

Accessibility & contrast

On white

18.88
#1F0134 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1F0134 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0134
18.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0134#FFFFFF#000000##FFFFFF
##1F01341.0018.881.1118.88
#FFFFFF18.881.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001035
Deuteranopia (green-blind)
#001133
Tritanopia (blue-blind)
#1B0E1B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1f0134;
/* rgb */ color: rgb(31, 1, 52);
/* oklch */ color: oklch(19.1% 0.095 306.5);
Tailwind
colors: {
  custom: {
    50: '#5d466c',
    500: '#1f0134',
    950: '#000000',
  },
}
SCSS
$custom: #1f0134;
$custom-light: #5d466c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0134",
  "rgb": {
    "r": 31,
    "g": 1,
    "b": 52
  },
  "hsl": {
    "h": 275.294,
    "s": 96.226,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19052,
    "c": 0.09497,
    "h": 306.5
  },
  "luminance": 0.00561
}

Semantic roles & 50–950 ramp

primary
#1F0134
secondary
#407918
accent
#FF2981
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040007
muted
#79777A

Preview Lab

Preview with #1F0134

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

Preview Lab → · Contrast checker → · Palette generator →

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