#1F062F#1F062F

#1F062F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.4% C 0.079 H 308.8°. Best body text is #FFFFFF at 18.66:1 contrast (WCAG AA passes).

Color values

HEX#1F062F
RGBrgb(31, 6, 47)
HSLhsl(277, 77%, 10%)
HSVhsv(277, 87%, 18%)
CMYKcmyk(34%, 87.2%, 0%, 81.6%)
CIE-LABlab(5.66, 21.19, -21.33)
CIE-LCHlch(5.66, 30.06, 314.81°)
OKLaboklab(19.44% 0.0497 -0.0618)
OKLCHoklch(19.44% 0.079 308.8)
XYZxyz(1.1432, 0.6268, 2.7495)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F062F #162F06
analogous
#0A062F #1F062F #2F062A
triadic
#1F062F #2F1F06 #062F1F
tetradic
#1F062F #2F0A06 #162F06 #062A2F
square
#1F062F #2F0A06 #162F06 #062A2F
split-complementary
#1F062F #2A2F06 #062F0A
monochromatic
#12031B #12031B #1F062F #430D65 #67149C

Accessibility & contrast

On white

18.66
#1F062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1F062F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F062F
18.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F062F#FFFFFF#000000##FFFFFF
##1F062F1.0018.661.1318.66
#FFFFFF18.661.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#00132E
Tritanopia (blue-blind)
#1D0F19
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f062f;
/* rgb */ color: rgb(31, 6, 47);
/* oklch */ color: oklch(19.4% 0.079 308.8);
Tailwind
colors: {
  custom: {
    50: '#5c4968',
    500: '#1f062f',
    950: '#000000',
  },
}
SCSS
$custom: #1f062f;
$custom-light: #5c4968;
$custom-dark: #000000;
JSON
{
  "hex": "#1f062f",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 276.585,
    "s": 77.358,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19436,
    "c": 0.07934,
    "h": 308.8
  },
  "luminance": 0.00627
}

Semantic roles & 50–950 ramp

primary
#1F062F
secondary
#407021
accent
#F4347F
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F062F

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

Preview Lab → · Contrast checker → · Palette generator →

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