#1F012F#1F012F

#1F012F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.5% C 0.090 H 310.8°. Best body text is #FFFFFF at 19.03:1 contrast (WCAG AA passes).

Color values

HEX#1F012F
RGBrgb(31, 1, 47)
HSLhsl(279, 96%, 9%)
HSVhsv(279, 98%, 18%)
CMYKcmyk(34%, 97.9%, 0%, 81.6%)
CIE-LABlab(4.68, 23.57, -22.89)
CIE-LCHlch(4.68, 32.86, 315.84°)
OKLaboklab(18.52% 0.0586 -0.068)
OKLCHoklch(18.52% 0.09 310.8)
XYZxyz(1.0889, 0.5183, 2.7314)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F012F #112F01
analogous
#08012F #1F012F #2F0128
triadic
#1F012F #2F1F01 #012F1F
tetradic
#1F012F #2F0801 #112F01 #01282F
square
#1F012F #2F0801 #112F01 #01282F
split-complementary
#1F012F #282F01 #012F08
monochromatic
#14011E #14011E #1F012F #47026B #6E04A7

Accessibility & contrast

On white

19.03
#1F012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#1F012F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F012F
19.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F012F#FFFFFF#000000##FFFFFF
##1F012F1.0019.031.1019.03
#FFFFFF19.031.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#1D0B18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1f012f;
/* rgb */ color: rgb(31, 1, 47);
/* oklch */ color: oklch(18.5% 0.090 310.8);
Tailwind
colors: {
  custom: {
    50: '#5c4668',
    500: '#1f012f',
    950: '#000000',
  },
}
SCSS
$custom: #1f012f;
$custom-light: #5c4668;
$custom-dark: #000000;
JSON
{
  "hex": "#1f012f",
  "rgb": {
    "r": 31,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 279.13,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18519,
    "c": 0.08981,
    "h": 310.8
  },
  "luminance": 0.00518
}

Semantic roles & 50–950 ramp

primary
#1F012F
secondary
#387517
accent
#FF2973
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F012F

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

Preview Lab → · Contrast checker → · Palette generator →

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