#40195A#40195A

#40195A is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.7% C 0.114 H 308.7°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#40195A
RGBrgb(64, 25, 90)
HSLhsl(276, 57%, 23%)
HSVhsv(276, 72%, 35%)
CMYKcmyk(28.9%, 72.2%, 0%, 64.7%)
CIE-LABlab(18.02, 31.60, -31.36)
CIE-LCHlch(18.02, 44.52, 315.22°)
OKLaboklab(30.72% 0.0711 -0.0887)
OKLCHoklch(30.72% 0.114 308.7)
XYZxyz(4.3071, 2.5235, 9.9311)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40195A #335A19
analogous
#1F195A #40195A #5A1954
triadic
#40195A #5A4019 #195A40
tetradic
#40195A #5A1F19 #335A19 #19545A
square
#40195A #5A1F19 #335A19 #19545A
split-complementary
#40195A #545A19 #195A1F
monochromatic
#110718 #1E0C2A #40195A #62268A #8434BA

Accessibility & contrast

On white

13.96
#40195A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#40195A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40195A
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40195A#FFFFFF#000000##FFFFFF
##40195A1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#0D2D59
Tritanopia (blue-blind)
#3C2737
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #40195a;
/* rgb */ color: rgb(64, 25, 90);
/* oklch */ color: oklch(30.7% 0.114 308.7);
Tailwind
colors: {
  custom: {
    50: '#785989',
    500: '#40195a',
    950: '#000000',
  },
}
SCSS
$custom: #40195a;
$custom-light: #785989;
$custom-dark: #000000;
JSON
{
  "hex": "#40195a",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 90
  },
  "hsl": {
    "h": 276,
    "s": 56.522,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30716,
    "c": 0.11369,
    "h": 308.7
  },
  "luminance": 0.02523
}

Semantic roles & 50–950 ramp

primary
#40195A
secondary
#5F903E
accent
#E04885
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040B
muted
#7B797C

Preview Lab

Preview with #40195A

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

Preview Lab → · Contrast checker → · Palette generator →

#40195A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva