#1F053A#1F053A

#1F053A is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.095 H 300.5°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#1F053A
RGBrgb(31, 5, 58)
HSLhsl(269, 84%, 12%)
HSVhsv(269, 91%, 23%)
CMYKcmyk(46.6%, 91.4%, 0%, 77.3%)
CIE-LABlab(6.37, 25.64, -28.28)
CIE-LCHlch(6.37, 38.17, 312.20°)
OKLaboklab(20.38% 0.0479 -0.0815)
OKLCHoklch(20.38% 0.095 300.5)
XYZxyz(1.3829, 0.7053, 4.0655)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F053A #203A05
analogous
#05053A #1F053A #3A053A
triadic
#1F053A #3A1F05 #053A1F
tetradic
#1F053A #3A0505 #203A05 #053A3A
square
#1F053A #3A0505 #203A05 #053A3A
split-complementary
#1F053A #3A3A05 #053A05
monochromatic
#0F021C #0F021C #1F053A #3D0A72 #5B0FAB

Accessibility & contrast

On white

18.40
#1F053A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1F053A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F053A
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F053A#FFFFFF#000000##FFFFFF
##1F053A1.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143B
Deuteranopia (green-blind)
#001439
Tritanopia (blue-blind)
#19131F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f053a;
/* rgb */ color: rgb(31, 5, 58);
/* oklch */ color: oklch(20.4% 0.095 300.5);
Tailwind
colors: {
  custom: {
    50: '#5e4871',
    500: '#1f053a',
    950: '#000000',
  },
}
SCSS
$custom: #1f053a;
$custom-light: #5e4871;
$custom-dark: #000000;
JSON
{
  "hex": "#1f053a",
  "rgb": {
    "r": 31,
    "g": 5,
    "b": 58
  },
  "hsl": {
    "h": 269.434,
    "s": 84.127,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20378,
    "c": 0.09451,
    "h": 300.5
  },
  "luminance": 0.00705
}

Semantic roles & 50–950 ramp

primary
#1F053A
secondary
#4E7B20
accent
#FA2D96
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #1F053A

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

Preview Lab → · Contrast checker → · Palette generator →

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