#1F062E#1F062E

#1F062E is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.078 H 309.7°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#1F062E
RGBrgb(31, 6, 46)
HSLhsl(278, 77%, 10%)
HSVhsv(278, 87%, 18%)
CMYKcmyk(32.6%, 87%, 0%, 82%)
CIE-LABlab(5.59, 20.83, -20.70)
CIE-LCHlch(5.59, 29.36, 315.18°)
OKLaboklab(19.34% 0.0499 -0.0601)
OKLCHoklch(19.34% 0.078 309.7)
XYZxyz(1.1232, 0.6188, 2.6445)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F062E #152E06
analogous
#0B062E #1F062E #2E0629
triadic
#1F062E #2E1F06 #062E1F
tetradic
#1F062E #2E0B06 #152E06 #06292E
square
#1F062E #2E0B06 #152E06 #06292E
split-complementary
#1F062E #292E06 #062E0B
monochromatic
#12041B #12041B #1F062E #430D64 #68149A

Accessibility & contrast

On white

18.69
#1F062E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1F062E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F062E
18.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F062E#FFFFFF#000000##FFFFFF
##1F062E1.0018.691.1218.69
#FFFFFF18.691.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#01132D
Tritanopia (blue-blind)
#1D0F19
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f062e;
/* rgb */ color: rgb(31, 6, 46);
/* oklch */ color: oklch(19.3% 0.078 309.7);
Tailwind
colors: {
  custom: {
    50: '#5c4967',
    500: '#1f062e',
    950: '#000000',
  },
}
SCSS
$custom: #1f062e;
$custom-light: #5c4967;
$custom-dark: #000000;
JSON
{
  "hex": "#1f062e",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 46
  },
  "hsl": {
    "h": 277.5,
    "s": 76.923,
    "l": 10.196
  },
  "oklch": {
    "l": 0.19343,
    "c": 0.0781,
    "h": 309.7
  },
  "luminance": 0.00619
}

Semantic roles & 50–950 ramp

primary
#1F062E
secondary
#3E6F21
accent
#F3347C
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F062E

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

Preview Lab → · Contrast checker → · Palette generator →

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