#40195E#40195E

#40195E is a dark, moderate violet. Relative luminance 0.026; OKLCH L 31.0% C 0.118 H 306.6°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#40195E
RGBrgb(64, 25, 94)
HSLhsl(274, 58%, 23%)
HSVhsv(274, 73%, 37%)
CMYKcmyk(31.9%, 73.4%, 0%, 63.1%)
CIE-LABlab(18.34, 32.64, -33.53)
CIE-LCHlch(18.34, 46.79, 314.23°)
OKLaboklab(31.04% 0.0706 -0.0951)
OKLCHoklch(31.04% 0.118 306.6)
XYZxyz(4.4819, 2.5934, 10.8520)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40195E #375E19
analogous
#1D195E #40195E #5E1959
triadic
#40195E #5E4019 #195E40
tetradic
#40195E #5E1D19 #375E19 #19595E
square
#40195E #5E1D19 #375E19 #19595E
split-complementary
#40195E #595E19 #195E1D
monochromatic
#100618 #1F0C2E #40195E #61268E #8233BF

Accessibility & contrast

On white

13.83
#40195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#40195E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40195E
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40195E#FFFFFF#000000##FFFFFF
##40195E1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#062D5D
Tritanopia (blue-blind)
#3B2839
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40195e;
/* rgb */ color: rgb(64, 25, 94);
/* oklch */ color: oklch(31.0% 0.118 306.6);
Tailwind
colors: {
  custom: {
    50: '#78598c',
    500: '#40195e',
    950: '#000000',
  },
}
SCSS
$custom: #40195e;
$custom-light: #78598c;
$custom-dark: #000000;
JSON
{
  "hex": "#40195e",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 273.913,
    "s": 57.983,
    "l": 23.333
  },
  "oklch": {
    "l": 0.31038,
    "c": 0.11843,
    "h": 306.6
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#40195E
secondary
#64943F
accent
#E1478A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #40195E

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

Preview Lab → · Contrast checker → · Palette generator →

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