#1F052E#1F052E

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

Color values

HEX#1F052E
RGBrgb(31, 5, 46)
HSLhsl(278, 80%, 10%)
HSVhsv(278, 89%, 18%)
CMYKcmyk(32.6%, 89.1%, 0%, 82%)
CIE-LABlab(5.39, 21.31, -21.01)
CIE-LCHlch(5.39, 29.92, 315.41°)
OKLaboklab(19.17% 0.0516 -0.0612)
OKLCHoklch(19.17% 0.08 310.1)
XYZxyz(1.1124, 0.5971, 2.6409)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F052E #142E05
analogous
#0B052E #1F052E #2E0528
triadic
#1F052E #2E1F05 #052E1F
tetradic
#1F052E #2E0B05 #142E05 #05282E
square
#1F052E #2E0B05 #142E05 #05282E
split-complementary
#1F052E #282E05 #052E0B
monochromatic
#13031C #13031C #1F052E #440B65 #69119C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F052E#FFFFFF#000000##FFFFFF
##1F052E1.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)
#00112F
Deuteranopia (green-blind)
#00122D
Tritanopia (blue-blind)
#1D0E18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f052e;
/* rgb */ color: rgb(31, 5, 46);
/* oklch */ color: oklch(19.2% 0.080 310.1);
Tailwind
colors: {
  custom: {
    50: '#5c4867',
    500: '#1f052e',
    950: '#000000',
  },
}
SCSS
$custom: #1f052e;
$custom-light: #5c4867;
$custom-dark: #000000;
JSON
{
  "hex": "#1f052e",
  "rgb": {
    "r": 31,
    "g": 5,
    "b": 46
  },
  "hsl": {
    "h": 278.049,
    "s": 80.392,
    "l": 10
  },
  "oklch": {
    "l": 0.19165,
    "c": 0.08011,
    "h": 310.1
  },
  "luminance": 0.00597
}

Semantic roles & 50–950 ramp

primary
#1F052E
secondary
#3D701F
accent
#F73179
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F052E

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

Preview Lab → · Contrast checker → · Palette generator →

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