#1F073D#1F073D

#1F073D is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.095 H 297.8°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#1F073D
RGBrgb(31, 7, 61)
HSLhsl(267, 79%, 13%)
HSVhsv(267, 89%, 24%)
CMYKcmyk(49.2%, 88.5%, 0%, 76.1%)
CIE-LABlab(7.05, 25.60, -29.34)
CIE-LCHlch(7.05, 38.94, 311.11°)
OKLaboklab(21.01% 0.0443 -0.0842)
OKLCHoklch(21.01% 0.095 297.8)
XYZxyz(1.4831, 0.7802, 4.4864)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F073D #253D07
analogous
#070A3D #1F073D #3A073D
triadic
#1F073D #3D1F07 #073D1F
tetradic
#1F073D #3D070A #253D07 #073D3A
square
#1F073D #3D070A #253D07 #073D3A
split-complementary
#1F073D #3D3A07 #0A3D07
monochromatic
#0E031B #0E031B #1F073D #3B0D74 #5714AB

Accessibility & contrast

On white

18.17
#1F073D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1F073D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F073D
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F073D#FFFFFF#000000##FFFFFF
##1F073D1.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163F
Deuteranopia (green-blind)
#00153C
Tritanopia (blue-blind)
#171622
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f073d;
/* rgb */ color: rgb(31, 7, 61);
/* oklch */ color: oklch(21.0% 0.095 297.8);
Tailwind
colors: {
  custom: {
    50: '#5f4973',
    500: '#1f073d',
    950: '#000000',
  },
}
SCSS
$custom: #1f073d;
$custom-light: #5f4973;
$custom-dark: #000000;
JSON
{
  "hex": "#1f073d",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 61
  },
  "hsl": {
    "h": 266.667,
    "s": 79.412,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21006,
    "c": 0.09515,
    "h": 297.8
  },
  "luminance": 0.0078
}

Semantic roles & 50–950 ramp

primary
#1F073D
secondary
#557C23
accent
#F6329F
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F073D

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

Preview Lab → · Contrast checker → · Palette generator →

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