#1F052F#1F052F

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

Color values

HEX#1F052F
RGBrgb(31, 5, 47)
HSLhsl(277, 81%, 10%)
HSVhsv(277, 89%, 18%)
CMYKcmyk(34%, 89.4%, 0%, 81.6%)
CIE-LABlab(5.47, 21.67, -21.64)
CIE-LCHlch(5.47, 30.62, 315.04°)
OKLaboklab(19.26% 0.0514 -0.063)
OKLCHoklch(19.26% 0.081 309.2)
XYZxyz(1.1323, 0.6051, 2.7459)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F052F #152F05
analogous
#0A052F #1F052F #2F052A
triadic
#1F052F #2F1F05 #052F1F
tetradic
#1F052F #2F0A05 #152F05 #052A2F
square
#1F052F #2F0A05 #152F05 #052A2F
split-complementary
#1F052F #2A2F05 #052F0A
monochromatic
#12031C #12031C #1F052F #430B66 #68119E

Accessibility & contrast

On white

18.73
#1F052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F052F
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F052F#FFFFFF#000000##FFFFFF
##1F052F1.0018.731.1218.73
#FFFFFF18.731.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f052f;
/* rgb */ color: rgb(31, 5, 47);
/* oklch */ color: oklch(19.3% 0.081 309.2);
Tailwind
colors: {
  custom: {
    50: '#5c4868',
    500: '#1f052f',
    950: '#000000',
  },
}
SCSS
$custom: #1f052f;
$custom-light: #5c4868;
$custom-dark: #000000;
JSON
{
  "hex": "#1f052f",
  "rgb": {
    "r": 31,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 277.143,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.1926,
    "c": 0.0813,
    "h": 309.2
  },
  "luminance": 0.00605
}

Semantic roles & 50–950 ramp

primary
#1F052F
secondary
#3E711F
accent
#F7317C
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F052F

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

Preview Lab → · Contrast checker → · Palette generator →

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