#190731#190731

#190731 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.079 H 298.2°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#190731
RGBrgb(25, 7, 49)
HSLhsl(266, 75%, 11%)
HSVhsv(266, 86%, 19%)
CMYKcmyk(49%, 85.7%, 0%, 80.8%)
CIE-LABlab(5.24, 19.12, -23.53)
CIE-LCHlch(5.24, 30.32, 309.10°)
OKLaboklab(18.9% 0.0371 -0.0692)
OKLCHoklch(18.9% 0.079 298.2)
XYZxyz(1.0311, 0.5804, 2.9628)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#190731 #1F3107
analogous
#070A31 #190731 #2E0731
triadic
#190731 #311907 #073119
tetradic
#190731 #31070A #1F3107 #07312E
square
#190731 #31070A #1F3107 #07312E
split-complementary
#190731 #312E07 #0A3107
monochromatic
#0E041B #0E041B #190731 #340F67 #50169C

Accessibility & contrast

On white

18.82
#190731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#190731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #190731
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##190731#FFFFFF#000000##FFFFFF
##1907311.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001232
Deuteranopia (green-blind)
#001130
Tritanopia (blue-blind)
#13111B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #190731;
/* rgb */ color: rgb(25, 7, 49);
/* oklch */ color: oklch(18.9% 0.079 298.2);
Tailwind
colors: {
  custom: {
    50: '#584969',
    500: '#190731',
    950: '#000000',
  },
}
SCSS
$custom: #190731;
$custom-light: #584969;
$custom-dark: #000000;
JSON
{
  "hex": "#190731",
  "rgb": {
    "r": 25,
    "g": 7,
    "b": 49
  },
  "hsl": {
    "h": 265.714,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.189,
    "c": 0.07851,
    "h": 298.2
  },
  "luminance": 0.0058
}

Semantic roles & 50–950 ramp

primary
#190731
secondary
#4F7123
accent
#F236A1
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030106
muted
#78777A

Preview Lab

Preview with #190731

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

Preview Lab → · Contrast checker → · Palette generator →

#190731 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva