#403258#403258

#403258 is a dark, moderate violet. Relative luminance 0.041; OKLCH L 35.0% C 0.066 H 300.0°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#403258
RGBrgb(64, 50, 88)
HSLhsl(262, 28%, 27%)
HSVhsv(262, 43%, 35%)
CMYKcmyk(27.3%, 43.2%, 0%, 65.5%)
CIE-LABlab(23.92, 15.48, -20.66)
CIE-LCHlch(23.92, 25.81, 306.84°)
OKLaboklab(35.03% 0.0332 -0.0576)
OKLCHoklch(35.03% 0.066 300)
XYZxyz(5.0160, 4.0758, 9.7531)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403258 #4A5832
analogous
#323758 #403258 #533258
triadic
#403258 #584032 #325840
tetradic
#403258 #583237 #4A5832 #325853
square
#403258 #583237 #4A5832 #325853
split-complementary
#403258 #585332 #375832
monochromatic
#0E0B14 #241C31 #403258 #5C487F #7960A5

Accessibility & contrast

On white

11.57
#403258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#403258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403258
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403258#FFFFFF#000000##FFFFFF
##4032581.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283959
Deuteranopia (green-blind)
#2B3957
Tritanopia (blue-blind)
#3C3840
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #403258;
/* rgb */ color: rgb(64, 50, 88);
/* oklch */ color: oklch(35.0% 0.066 300.0);
Tailwind
colors: {
  custom: {
    50: '#766a87',
    500: '#403258',
    950: '#000000',
  },
}
SCSS
$custom: #403258;
$custom-light: #766a87;
$custom-dark: #000000;
JSON
{
  "hex": "#403258",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 88
  },
  "hsl": {
    "h": 262.105,
    "s": 27.536,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35032,
    "c": 0.06645,
    "h": 300
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#403258
secondary
#79895D
accent
#C464A1
background
#F7F6F8
surface
#EDEBEF
border
#C8C6CA
text
#08060B
muted
#7B7A7C

Preview Lab

Preview with #403258

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

Preview Lab → · Contrast checker → · Palette generator →

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