#1F073A#1F073A

#1F073A is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.7% C 0.091 H 299.7°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#1F073A
RGBrgb(31, 7, 58)
HSLhsl(268, 78%, 13%)
HSVhsv(268, 88%, 23%)
CMYKcmyk(46.6%, 87.9%, 0%, 77.3%)
CIE-LABlab(6.76, 24.58, -27.64)
CIE-LCHlch(6.76, 36.99, 311.65°)
OKLaboklab(20.69% 0.0453 -0.0793)
OKLCHoklch(20.69% 0.091 299.7)
XYZxyz(1.4046, 0.7487, 4.0727)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F073A #223A07
analogous
#07093A #1F073A #38073A
triadic
#1F073A #3A1F07 #073A1F
tetradic
#1F073A #3A0709 #223A07 #073A38
square
#1F073A #3A0709 #223A07 #073A38
split-complementary
#1F073A #3A3807 #093A07
monochromatic
#0F031B #0F031B #1F073A #3C0E71 #5914A7

Accessibility & contrast

On white

18.26
#1F073A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F073A
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F073A#FFFFFF#000000##FFFFFF
##1F073A1.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153B
Deuteranopia (green-blind)
#001539
Tritanopia (blue-blind)
#191420
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f073a;
/* rgb */ color: rgb(31, 7, 58);
/* oklch */ color: oklch(20.7% 0.091 299.7);
Tailwind
colors: {
  custom: {
    50: '#5e4971',
    500: '#1f073a',
    950: '#000000',
  },
}
SCSS
$custom: #1f073a;
$custom-light: #5e4971;
$custom-dark: #000000;
JSON
{
  "hex": "#1f073a",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 58
  },
  "hsl": {
    "h": 268.235,
    "s": 78.462,
    "l": 12.745
  },
  "oklch": {
    "l": 0.2069,
    "c": 0.09137,
    "h": 299.7
  },
  "luminance": 0.00749
}

Semantic roles & 50–950 ramp

primary
#1F073A
secondary
#517923
accent
#F5339A
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #1F073A

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

Preview Lab → · Contrast checker → · Palette generator →

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