#1F092C#1F092C

#1F092C is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.7% C 0.070 H 310.5°. Best body text is #FFFFFF at 18.52:1 contrast (WCAG AA passes).

Color values

HEX#1F092C
RGBrgb(31, 9, 44)
HSLhsl(278, 66%, 10%)
HSVhsv(278, 80%, 17%)
CMYKcmyk(29.5%, 79.5%, 0%, 82.7%)
CIE-LABlab(6.04, 18.69, -18.48)
CIE-LCHlch(6.04, 26.29, 315.32°)
OKLaboklab(19.69% 0.0453 -0.0531)
OKLCHoklch(19.69% 0.07 310.5)
XYZxyz(1.1173, 0.6686, 2.4526)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F092C #162C09
analogous
#0D092C #1F092C #2C0927
triadic
#1F092C #2C1F09 #092C1F
tetradic
#1F092C #2C0D09 #162C09 #09272C
square
#1F092C #2C0D09 #162C09 #09272C
split-complementary
#1F092C #272C09 #092C0D
monochromatic
#120519 #120519 #1F092C #43135F #671E92

Accessibility & contrast

On white

18.52
#1F092C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F092C
18.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F092C#FFFFFF#000000##FFFFFF
##1F092C1.0018.521.1318.52
#FFFFFF18.521.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#05142B
Tritanopia (blue-blind)
#1D1019
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f092c;
/* rgb */ color: rgb(31, 9, 44);
/* oklch */ color: oklch(19.7% 0.070 310.5);
Tailwind
colors: {
  custom: {
    50: '#5c4a65',
    500: '#1f092c',
    950: '#000000',
  },
}
SCSS
$custom: #1f092c;
$custom-light: #5c4a65;
$custom-dark: #000000;
JSON
{
  "hex": "#1f092c",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 44
  },
  "hsl": {
    "h": 277.714,
    "s": 66.038,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19686,
    "c": 0.06975,
    "h": 310.5
  },
  "luminance": 0.00669
}

Semantic roles & 50–950 ramp

primary
#1F092C
secondary
#406A27
accent
#E93F7E
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #1F092C

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

Preview Lab → · Contrast checker → · Palette generator →

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