#1F053F#1F053F

#1F053F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.101 H 297.2°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#1F053F
RGBrgb(31, 5, 63)
HSLhsl(267, 85%, 13%)
HSVhsv(267, 92%, 25%)
CMYKcmyk(50.8%, 92.1%, 0%, 75.3%)
CIE-LABlab(6.85, 27.36, -31.09)
CIE-LCHlch(6.85, 41.42, 311.35°)
OKLaboklab(20.93% 0.0459 -0.0894)
OKLCHoklch(20.93% 0.101 297.2)
XYZxyz(1.5163, 0.7587, 4.7682)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F053F #253F05
analogous
#05083F #1F053F #3C053F
triadic
#1F053F #3F1F05 #053F1F
tetradic
#1F053F #3F0508 #253F05 #053F3C
square
#1F053F #3F0508 #253F05 #053F3C
split-complementary
#1F053F #3F3C05 #083F05
monochromatic
#0E021C #0E021C #1F053F #3B0978 #570EB0

Accessibility & contrast

On white

18.23
#1F053F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1F053F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F053F
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F053F#FFFFFF#000000##FFFFFF
##1F053F1.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001541
Deuteranopia (green-blind)
#00143E
Tritanopia (blue-blind)
#161522
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f053f;
/* rgb */ color: rgb(31, 5, 63);
/* oklch */ color: oklch(20.9% 0.101 297.2);
Tailwind
colors: {
  custom: {
    50: '#5f4875',
    500: '#1f053f',
    950: '#000000',
  },
}
SCSS
$custom: #1f053f;
$custom-light: #5f4875;
$custom-dark: #000000;
JSON
{
  "hex": "#1f053f",
  "rgb": {
    "r": 31,
    "g": 5,
    "b": 63
  },
  "hsl": {
    "h": 266.897,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20925,
    "c": 0.10051,
    "h": 297.2
  },
  "luminance": 0.00759
}

Semantic roles & 50–950 ramp

primary
#1F053F
secondary
#558020
accent
#FC2C9F
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F053F

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

Preview Lab → · Contrast checker → · Palette generator →

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