#1F062B#1F062B

#1F062B is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.1% C 0.074 H 312.7°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#1F062B
RGBrgb(31, 6, 43)
HSLhsl(281, 76%, 10%)
HSVhsv(281, 86%, 17%)
CMYKcmyk(27.9%, 86%, 0%, 83.1%)
CIE-LABlab(5.38, 19.76, -18.77)
CIE-LCHlch(5.38, 27.25, 316.47°)
OKLaboklab(19.07% 0.0504 -0.0547)
OKLCHoklch(19.07% 0.074 312.7)
XYZxyz(1.0662, 0.5960, 2.3439)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F062B #122B06
analogous
#0D062B #1F062B #2B0625
triadic
#1F062B #2B1F06 #062B1F
tetradic
#1F062B #2B0D06 #122B06 #06252B
square
#1F062B #2B0D06 #122B06 #06252B
split-complementary
#1F062B #252B06 #062B0D
monochromatic
#13041B #13041B #1F062B #460D61 #6C1596

Accessibility & contrast

On white

18.76
#1F062B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F062B
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F062B#FFFFFF#000000##FFFFFF
##1F062B1.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112C
Deuteranopia (green-blind)
#04122A
Tritanopia (blue-blind)
#1E0D17
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f062b;
/* rgb */ color: rgb(31, 6, 43);
/* oklch */ color: oklch(19.1% 0.074 312.7);
Tailwind
colors: {
  custom: {
    50: '#5c4964',
    500: '#1f062b',
    950: '#000000',
  },
}
SCSS
$custom: #1f062b;
$custom-light: #5c4964;
$custom-dark: #000000;
JSON
{
  "hex": "#1f062b",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 43
  },
  "hsl": {
    "h": 280.541,
    "s": 75.51,
    "l": 9.608
  },
  "oklch": {
    "l": 0.1907,
    "c": 0.07441,
    "h": 312.7
  },
  "luminance": 0.00596
}

Semantic roles & 50–950 ramp

primary
#1F062B
secondary
#396C21
accent
#F23673
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1F062B

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

Preview Lab → · Contrast checker → · Palette generator →

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