#1F022F#1F022F

#1F022F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.7% C 0.088 H 310.4°. Best body text is #FFFFFF at 18.95:1 contrast (WCAG AA passes).

Color values

HEX#1F022F
RGBrgb(31, 2, 47)
HSLhsl(279, 92%, 10%)
HSVhsv(279, 96%, 18%)
CMYKcmyk(34%, 95.7%, 0%, 81.6%)
CIE-LABlab(4.88, 23.10, -22.58)
CIE-LCHlch(4.88, 32.30, 315.66°)
OKLaboklab(18.71% 0.0567 -0.0667)
OKLCHoklch(18.71% 0.088 310.4)
XYZxyz(1.0998, 0.5400, 2.7351)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F022F #122F02
analogous
#09022F #1F022F #2F0229
triadic
#1F022F #2F1F02 #022F1F
tetradic
#1F022F #2F0902 #122F02 #02292F
square
#1F022F #2F0902 #122F02 #02292F
split-complementary
#1F022F #292F02 #022F09
monochromatic
#13011D #13011D #1F022F #46046A #6C07A4

Accessibility & contrast

On white

18.95
#1F022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F022F
18.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F022F#FFFFFF#000000##FFFFFF
##1F022F1.0018.951.1118.95
#FFFFFF18.951.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#1D0C18
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1f022f;
/* rgb */ color: rgb(31, 2, 47);
/* oklch */ color: oklch(18.7% 0.088 310.4);
Tailwind
colors: {
  custom: {
    50: '#5c4768',
    500: '#1f022f',
    950: '#000000',
  },
}
SCSS
$custom: #1f022f;
$custom-light: #5c4768;
$custom-dark: #000000;
JSON
{
  "hex": "#1f022f",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 278.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.1871,
    "c": 0.08758,
    "h": 310.4
  },
  "luminance": 0.0054
}

Semantic roles & 50–950 ramp

primary
#1F022F
secondary
#397419
accent
#FF2975
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F022F

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

Preview Lab → · Contrast checker → · Palette generator →

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