#1F1027#1F1027

#1F1027 is a very dark, muted violet. Relative luminance 0.008; OKLCH L 20.6% C 0.048 H 312.9°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#1F1027
RGBrgb(31, 16, 39)
HSLhsl(279, 42%, 11%)
HSVhsv(279, 59%, 15%)
CMYKcmyk(20.5%, 59%, 0%, 84.7%)
CIE-LABlab(7.30, 13.22, -12.74)
CIE-LCHlch(7.30, 18.36, 316.07°)
OKLaboklab(20.62% 0.033 -0.0355)
OKLCHoklch(20.62% 0.048 312.9)
XYZxyz(1.1165, 0.8084, 2.0163)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1027 #182710
analogous
#131027 #1F1027 #271023
triadic
#1F1027 #271F10 #10271F
tetradic
#1F1027 #271310 #182710 #102327
square
#1F1027 #271310 #182710 #102327
split-complementary
#1F1027 #232710 #102713
monochromatic
#110916 #110916 #1F1027 #412252 #64347E

Accessibility & contrast

On white

18.08
#1F1027 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1F1027 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1027
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1027#FFFFFF#000000##FFFFFF
##1F10271.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1528
Deuteranopia (green-blind)
#0F1626
Tritanopia (blue-blind)
#1E1319
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f1027;
/* rgb */ color: rgb(31, 16, 39);
/* oklch */ color: oklch(20.6% 0.048 312.9);
Tailwind
colors: {
  custom: {
    50: '#5b4e61',
    500: '#1f1027',
    950: '#000000',
  },
}
SCSS
$custom: #1f1027;
$custom-light: #5b4e61;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1027",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 39
  },
  "hsl": {
    "h": 279.13,
    "s": 41.818,
    "l": 10.784
  },
  "oklch": {
    "l": 0.20617,
    "c": 0.04845,
    "h": 312.9
  },
  "luminance": 0.00808
}

Semantic roles & 50–950 ramp

primary
#1F1027
secondary
#435F34
accent
#D25681
background
#F5F4F5
surface
#E9E7E9
border
#C5C3C5
text
#040105
muted
#797779

Preview Lab

Preview with #1F1027

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

Preview Lab → · Contrast checker → · Palette generator →

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