#40195D#40195D

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

Color values

HEX#40195D
RGBrgb(64, 25, 93)
HSLhsl(274, 58%, 23%)
HSVhsv(274, 73%, 36%)
CMYKcmyk(31.2%, 73.1%, 0%, 63.5%)
CIE-LABlab(18.26, 32.38, -32.99)
CIE-LCHlch(18.26, 46.22, 314.46°)
OKLaboklab(30.96% 0.0707 -0.0935)
OKLCHoklch(30.96% 0.117 307.1)
XYZxyz(4.4373, 2.5756, 10.6172)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40195D #365D19
analogous
#1E195D #40195D #5D1958
triadic
#40195D #5D4019 #195D40
tetradic
#40195D #5D1E19 #365D19 #19585D
square
#40195D #5D1E19 #365D19 #19585D
split-complementary
#40195D #585D19 #195D1E
monochromatic
#110618 #1F0C2D #40195D #61268D #8233BD

Accessibility & contrast

On white

13.86
#40195D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40195D
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40195D#FFFFFF#000000##FFFFFF
##40195D1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#072D5C
Tritanopia (blue-blind)
#3B2839
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40195d;
/* rgb */ color: rgb(64, 25, 93);
/* oklch */ color: oklch(31.0% 0.117 307.1);
Tailwind
colors: {
  custom: {
    50: '#78598b',
    500: '#40195d',
    950: '#000000',
  },
}
SCSS
$custom: #40195d;
$custom-light: #78598b;
$custom-dark: #000000;
JSON
{
  "hex": "#40195d",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 93
  },
  "hsl": {
    "h": 274.412,
    "s": 57.627,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30956,
    "c": 0.11724,
    "h": 307.1
  },
  "luminance": 0.02576
}

Semantic roles & 50–950 ramp

primary
#40195D
secondary
#63933F
accent
#E14789
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #40195D

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

Preview Lab → · Contrast checker → · Palette generator →

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