#1F062C#1F062C

#1F062C is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.076 H 311.7°. Best body text is #FFFFFF at 18.74:1 contrast (WCAG AA passes).

Color values

HEX#1F062C
RGBrgb(31, 6, 44)
HSLhsl(279, 76%, 10%)
HSVhsv(279, 86%, 17%)
CMYKcmyk(29.5%, 86.4%, 0%, 82.7%)
CIE-LABlab(5.45, 20.11, -19.42)
CIE-LCHlch(5.45, 27.95, 316.01°)
OKLaboklab(19.16% 0.0503 -0.0565)
OKLCHoklch(19.16% 0.076 311.7)
XYZxyz(1.0847, 0.6034, 2.4417)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F062C #132C06
analogous
#0C062C #1F062C #2C0626
triadic
#1F062C #2C1F06 #062C1F
tetradic
#1F062C #2C0C06 #132C06 #06262C
square
#1F062C #2C0C06 #132C06 #06262C
split-complementary
#1F062C #262C06 #062C0C
monochromatic
#13041B #13041B #1F062C #450D62 #6B1598

Accessibility & contrast

On white

18.74
#1F062C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F062C
18.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F062C#FFFFFF#000000##FFFFFF
##1F062C1.0018.741.1218.74
#FFFFFF18.741.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112D
Deuteranopia (green-blind)
#03122B
Tritanopia (blue-blind)
#1D0E18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f062c;
/* rgb */ color: rgb(31, 6, 44);
/* oklch */ color: oklch(19.2% 0.076 311.7);
Tailwind
colors: {
  custom: {
    50: '#5c4965',
    500: '#1f062c',
    950: '#000000',
  },
}
SCSS
$custom: #1f062c;
$custom-light: #5c4965;
$custom-dark: #000000;
JSON
{
  "hex": "#1f062c",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 44
  },
  "hsl": {
    "h": 279.474,
    "s": 76,
    "l": 9.804
  },
  "oklch": {
    "l": 0.1916,
    "c": 0.07564,
    "h": 311.7
  },
  "luminance": 0.00603
}

Semantic roles & 50–950 ramp

primary
#1F062C
secondary
#3B6D21
accent
#F33576
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1F062C

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

Preview Lab → · Contrast checker → · Palette generator →

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