#1F073C#1F073C

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

Color values

HEX#1F073C
RGBrgb(31, 7, 60)
HSLhsl(267, 79%, 13%)
HSVhsv(267, 88%, 24%)
CMYKcmyk(48.3%, 88.3%, 0%, 76.5%)
CIE-LABlab(6.95, 25.27, -28.78)
CIE-LCHlch(6.95, 38.30, 311.28°)
OKLaboklab(20.9% 0.0447 -0.0826)
OKLCHoklch(20.9% 0.094 298.4)
XYZxyz(1.4565, 0.7695, 4.3459)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F073C #243C07
analogous
#07093C #1F073C #39073C
triadic
#1F073C #3C1F07 #073C1F
tetradic
#1F073C #3C0709 #243C07 #073C39
square
#1F073C #3C0709 #243C07 #073C39
split-complementary
#1F073C #3C3907 #093C07
monochromatic
#0E031B #0E031B #1F073C #3B0D73 #5814AA

Accessibility & contrast

On white

18.20
#1F073C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F073C
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F073C#FFFFFF#000000##FFFFFF
##1F073C1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f073c;
/* rgb */ color: rgb(31, 7, 60);
/* oklch */ color: oklch(20.9% 0.094 298.4);
Tailwind
colors: {
  custom: {
    50: '#5e4972',
    500: '#1f073c',
    950: '#000000',
  },
}
SCSS
$custom: #1f073c;
$custom-light: #5e4972;
$custom-dark: #000000;
JSON
{
  "hex": "#1f073c",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 60
  },
  "hsl": {
    "h": 267.17,
    "s": 79.104,
    "l": 13.137
  },
  "oklch": {
    "l": 0.209,
    "c": 0.09389,
    "h": 298.4
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#1F073C
secondary
#547B23
accent
#F6329D
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #1F073C

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

Preview Lab → · Contrast checker → · Palette generator →

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