#1F0746#1F0746

#1F0746 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.106 H 292.6°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#1F0746
RGBrgb(31, 7, 70)
HSLhsl(263, 82%, 15%)
HSVhsv(263, 90%, 27%)
CMYKcmyk(55.7%, 90%, 0%, 72.5%)
CIE-LABlab(8.00, 28.50, -34.19)
CIE-LCHlch(8.00, 44.51, 309.81°)
OKLaboklab(22% 0.041 -0.0982)
OKLCHoklch(22% 0.106 292.6)
XYZxyz(1.7462, 0.8854, 5.8721)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0746 #2E4607
analogous
#070F46 #1F0746 #3E0746
triadic
#1F0746 #461F07 #07461F
tetradic
#1F0746 #46070F #2E4607 #07463E
square
#1F0746 #46070F #2E4607 #07463E
split-complementary
#1F0746 #463E07 #0F4607
monochromatic
#0C031C #0C031C #1F0746 #380D7E #5012B5

Accessibility & contrast

On white

17.84
#1F0746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1F0746 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0746
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0746#FFFFFF#000000##FFFFFF
##1F07461.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001848
Deuteranopia (green-blind)
#001645
Tritanopia (blue-blind)
#121927
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0746;
/* rgb */ color: rgb(31, 7, 70);
/* oklch */ color: oklch(22.0% 0.106 292.6);
Tailwind
colors: {
  custom: {
    50: '#604a7a',
    500: '#1f0746',
    950: '#000000',
  },
}
SCSS
$custom: #1f0746;
$custom-light: #604a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0746",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 262.857,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21996,
    "c": 0.10639,
    "h": 292.6
  },
  "luminance": 0.00885
}

Semantic roles & 50–950 ramp

primary
#1F0746
secondary
#608524
accent
#F830AC
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0746

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

Preview Lab → · Contrast checker → · Palette generator →

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