#403254#403254

#403254 is a dark, moderate violet. Relative luminance 0.040; OKLCH L 34.8% C 0.060 H 302.3°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#403254
RGBrgb(64, 50, 84)
HSLhsl(265, 25%, 26%)
HSVhsv(265, 40%, 33%)
CMYKcmyk(23.8%, 40.5%, 0%, 67.1%)
CIE-LABlab(23.71, 14.36, -18.35)
CIE-LCHlch(23.71, 23.30, 308.04°)
OKLaboklab(34.8% 0.0322 -0.0509)
OKLCHoklch(34.8% 0.06 302.3)
XYZxyz(4.8548, 4.0113, 8.9043)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403254 #465432
analogous
#323554 #403254 #513254
triadic
#403254 #544032 #325440
tetradic
#403254 #543235 #465432 #325451
square
#403254 #543235 #465432 #325451
split-complementary
#403254 #545132 #355432
monochromatic
#0F0B13 #231B2E #403254 #5D497A #7B60A0

Accessibility & contrast

On white

11.65
#403254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#403254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403254
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403254#FFFFFF#000000##FFFFFF
##4032541.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3855
Deuteranopia (green-blind)
#2D3853
Tritanopia (blue-blind)
#3D373F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #403254;
/* rgb */ color: rgb(64, 50, 84);
/* oklch */ color: oklch(34.8% 0.060 302.3);
Tailwind
colors: {
  custom: {
    50: '#756a84',
    500: '#403254',
    950: '#000000',
  },
}
SCSS
$custom: #403254;
$custom-light: #756a84;
$custom-dark: #000000;
JSON
{
  "hex": "#403254",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 84
  },
  "hsl": {
    "h": 264.706,
    "s": 25.373,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34802,
    "c": 0.06024,
    "h": 302.3
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#403254
secondary
#74855D
accent
#C2669C
background
#F7F6F8
surface
#EDEBEF
border
#C8C6CA
text
#08060B
muted
#7B7A7C

Preview Lab

Preview with #403254

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

Preview Lab → · Contrast checker → · Palette generator →

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