#1F073E#1F073E

#1F073E is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.096 H 297.1°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#1F073E
RGBrgb(31, 7, 62)
HSLhsl(266, 80%, 14%)
HSVhsv(266, 89%, 24%)
CMYKcmyk(50%, 88.7%, 0%, 75.7%)
CIE-LABlab(7.14, 25.94, -29.90)
CIE-LCHlch(7.14, 39.58, 310.94°)
OKLaboklab(21.11% 0.044 -0.0858)
OKLCHoklch(21.11% 0.096 297.1)
XYZxyz(1.5103, 0.7910, 4.6296)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F073E #263E07
analogous
#070A3E #1F073E #3A073E
triadic
#1F073E #3E1F07 #073E1F
tetradic
#1F073E #3E070A #263E07 #073E3A
square
#1F073E #3E070A #263E07 #073E3A
split-complementary
#1F073E #3E3A07 #0A3E07
monochromatic
#0E031B #0E031B #1F073E #3A0D75 #5613AC

Accessibility & contrast

On white

18.13
#1F073E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F073E
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F073E#FFFFFF#000000##FFFFFF
##1F073E1.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001640
Deuteranopia (green-blind)
#00153D
Tritanopia (blue-blind)
#171622
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f073e;
/* rgb */ color: rgb(31, 7, 62);
/* oklch */ color: oklch(21.1% 0.096 297.1);
Tailwind
colors: {
  custom: {
    50: '#5f4974',
    500: '#1f073e',
    950: '#000000',
  },
}
SCSS
$custom: #1f073e;
$custom-light: #5f4974;
$custom-dark: #000000;
JSON
{
  "hex": "#1f073e",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 62
  },
  "hsl": {
    "h": 266.182,
    "s": 79.71,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21113,
    "c": 0.0964,
    "h": 297.1
  },
  "luminance": 0.00791
}

Semantic roles & 50–950 ramp

primary
#1F073E
secondary
#567D24
accent
#F632A0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F073E

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

Preview Lab → · Contrast checker → · Palette generator →

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