#40195B#40195B

#40195B is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.8% C 0.115 H 308.2°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#40195B
RGBrgb(64, 25, 91)
HSLhsl(275, 57%, 23%)
HSVhsv(275, 73%, 36%)
CMYKcmyk(29.7%, 72.5%, 0%, 64.3%)
CIE-LABlab(18.10, 31.86, -31.91)
CIE-LCHlch(18.10, 45.09, 314.96°)
OKLaboklab(30.8% 0.071 -0.0903)
OKLCHoklch(30.8% 0.115 308.2)
XYZxyz(4.3499, 2.5406, 10.1567)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40195B #345B19
analogous
#1F195B #40195B #5B1955
triadic
#40195B #5B4019 #195B40
tetradic
#40195B #5B1F19 #345B19 #19555B
square
#40195B #5B1F19 #345B19 #19555B
split-complementary
#40195B #555B19 #195B1F
monochromatic
#110718 #1E0C2B #40195B #62268B #8433BB

Accessibility & contrast

On white

13.92
#40195B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#40195B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40195B
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40195B#FFFFFF#000000##FFFFFF
##40195B1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40195b;
/* rgb */ color: rgb(64, 25, 91);
/* oklch */ color: oklch(30.8% 0.115 308.2);
Tailwind
colors: {
  custom: {
    50: '#78598a',
    500: '#40195b',
    950: '#000000',
  },
}
SCSS
$custom: #40195b;
$custom-light: #78598a;
$custom-dark: #000000;
JSON
{
  "hex": "#40195b",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 91
  },
  "hsl": {
    "h": 275.455,
    "s": 56.897,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30795,
    "c": 0.11487,
    "h": 308.2
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#40195B
secondary
#60913F
accent
#E04886
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #40195B

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

Preview Lab → · Contrast checker → · Palette generator →

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