#1F073B#1F073B

#1F073B is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.093 H 299.0°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#1F073B
RGBrgb(31, 7, 59)
HSLhsl(268, 79%, 13%)
HSVhsv(268, 88%, 23%)
CMYKcmyk(47.5%, 88.1%, 0%, 76.9%)
CIE-LABlab(6.86, 24.93, -28.21)
CIE-LCHlch(6.86, 37.65, 311.46°)
OKLaboklab(20.8% 0.045 -0.081)
OKLCHoklch(20.8% 0.093 299)
XYZxyz(1.4303, 0.7590, 4.2080)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F073B #233B07
analogous
#07093B #1F073B #39073B
triadic
#1F073B #3B1F07 #073B1F
tetradic
#1F073B #3B0709 #233B07 #073B39
square
#1F073B #3B0709 #233B07 #073B39
split-complementary
#1F073B #3B3907 #093B07
monochromatic
#0E031B #0E031B #1F073B #3C0D72 #5814A8

Accessibility & contrast

On white

18.23
#1F073B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F073B
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F073B#FFFFFF#000000##FFFFFF
##1F073B1.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f073b;
/* rgb */ color: rgb(31, 7, 59);
/* oklch */ color: oklch(20.8% 0.093 299.0);
Tailwind
colors: {
  custom: {
    50: '#5e4971',
    500: '#1f073b',
    950: '#000000',
  },
}
SCSS
$custom: #1f073b;
$custom-light: #5e4971;
$custom-dark: #000000;
JSON
{
  "hex": "#1f073b",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 59
  },
  "hsl": {
    "h": 267.692,
    "s": 78.788,
    "l": 12.941
  },
  "oklch": {
    "l": 0.20795,
    "c": 0.09263,
    "h": 299
  },
  "luminance": 0.00759
}

Semantic roles & 50–950 ramp

primary
#1F073B
secondary
#527A23
accent
#F5339B
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #1F073B

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

Preview Lab → · Contrast checker → · Palette generator →

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