#1F022E#1F022E

#1F022E is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.6% C 0.087 H 311.3°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#1F022E
RGBrgb(31, 2, 46)
HSLhsl(280, 92%, 9%)
HSVhsv(280, 96%, 18%)
CMYKcmyk(32.6%, 95.7%, 0%, 82%)
CIE-LABlab(4.81, 22.72, -21.94)
CIE-LCHlch(4.81, 31.59, 316.00°)
OKLaboklab(18.61% 0.0571 -0.065)
OKLCHoklch(18.61% 0.087 311.3)
XYZxyz(1.0798, 0.5320, 2.6300)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F022E #112E02
analogous
#09022E #1F022E #2E0227
triadic
#1F022E #2E1F02 #022E1F
tetradic
#1F022E #2E0902 #112E02 #02272E
square
#1F022E #2E0902 #112E02 #02272E
split-complementary
#1F022E #272E02 #022E09
monochromatic
#14011D #14011D #1F022E #470569 #6E07A3

Accessibility & contrast

On white

18.98
#1F022E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F022E
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F022E#FFFFFF#000000##FFFFFF
##1F022E1.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#1D0C17
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1f022e;
/* rgb */ color: rgb(31, 2, 46);
/* oklch */ color: oklch(18.6% 0.087 311.3);
Tailwind
colors: {
  custom: {
    50: '#5c4767',
    500: '#1f022e',
    950: '#000000',
  },
}
SCSS
$custom: #1f022e;
$custom-light: #5c4767;
$custom-dark: #000000;
JSON
{
  "hex": "#1f022e",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 46
  },
  "hsl": {
    "h": 279.545,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18609,
    "c": 0.08651,
    "h": 311.3
  },
  "luminance": 0.00532
}

Semantic roles & 50–950 ramp

primary
#1F022E
secondary
#387319
accent
#FF2972
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F022E

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

Preview Lab → · Contrast checker → · Palette generator →

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