#1F073F#1F073F

#1F073F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.098 H 296.5°. Best body text is #FFFFFF at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#1F073F
RGBrgb(31, 7, 63)
HSLhsl(266, 80%, 14%)
HSVhsv(266, 89%, 25%)
CMYKcmyk(50.8%, 88.9%, 0%, 75.3%)
CIE-LABlab(7.25, 26.27, -30.45)
CIE-LCHlch(7.25, 40.22, 310.78°)
OKLaboklab(21.22% 0.0436 -0.0874)
OKLCHoklch(21.22% 0.098 296.5)
XYZxyz(1.5380, 0.8021, 4.7755)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F073F #273F07
analogous
#070B3F #1F073F #3B073F
triadic
#1F073F #3F1F07 #073F1F
tetradic
#1F073F #3F070B #273F07 #073F3B
square
#1F073F #3F070B #273F07 #073F3B
split-complementary
#1F073F #3F3B07 #0B3F07
monochromatic
#0E031C #0E031C #1F073F #3A0D76 #5513AD

Accessibility & contrast

On white

18.10
#1F073F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F073F
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F073F#FFFFFF#000000##FFFFFF
##1F073F1.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001641
Deuteranopia (green-blind)
#00153E
Tritanopia (blue-blind)
#161623
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f073f;
/* rgb */ color: rgb(31, 7, 63);
/* oklch */ color: oklch(21.2% 0.098 296.5);
Tailwind
colors: {
  custom: {
    50: '#5f4975',
    500: '#1f073f',
    950: '#000000',
  },
}
SCSS
$custom: #1f073f;
$custom-light: #5f4975;
$custom-dark: #000000;
JSON
{
  "hex": "#1f073f",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 63
  },
  "hsl": {
    "h": 265.714,
    "s": 80,
    "l": 13.725
  },
  "oklch": {
    "l": 0.2122,
    "c": 0.09766,
    "h": 296.5
  },
  "luminance": 0.00802
}

Semantic roles & 50–950 ramp

primary
#1F073F
secondary
#577E24
accent
#F631A2
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F073F

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

Preview Lab → · Contrast checker → · Palette generator →

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