#403262#403262

#403262 is a dark, moderate violet. Relative luminance 0.043; OKLCH L 35.6% C 0.082 H 295.4°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#403262
RGBrgb(64, 50, 98)
HSLhsl(258, 32%, 29%)
HSVhsv(258, 49%, 38%)
CMYKcmyk(34.7%, 49%, 0%, 61.6%)
CIE-LABlab(24.49, 18.38, -26.31)
CIE-LCHlch(24.49, 32.09, 304.95°)
OKLaboklab(35.65% 0.0351 -0.074)
OKLCHoklch(35.65% 0.082 295.4)
XYZxyz(5.4590, 4.2530, 12.0862)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403262 #546232
analogous
#323C62 #403262 #583262
triadic
#403262 #624032 #326240
tetradic
#403262 #62323C #546232 #326258
square
#403262 #62323C #546232 #326258
split-complementary
#403262 #625832 #3C6232
monochromatic
#0D0A14 #261D39 #403262 #5A478B #7760AE

Accessibility & contrast

On white

11.35
#403262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#403262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403262
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403262#FFFFFF#000000##FFFFFF
##4032621.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223B64
Deuteranopia (green-blind)
#253961
Tritanopia (blue-blind)
#383B45
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #403262;
/* rgb */ color: rgb(64, 50, 98);
/* oklch */ color: oklch(35.6% 0.082 295.4);
Tailwind
colors: {
  custom: {
    50: '#766a8f',
    500: '#403262',
    950: '#000000',
  },
}
SCSS
$custom: #403262;
$custom-light: #766a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#403262",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 98
  },
  "hsl": {
    "h": 257.5,
    "s": 32.432,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35649,
    "c": 0.08189,
    "h": 295.4
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#403262
secondary
#83935D
accent
#C95FAA
background
#F7F6F8
surface
#EDEBF0
border
#C8C6CB
text
#09060C
muted
#7B7A7D

Preview Lab

Preview with #403262

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

Preview Lab → · Contrast checker → · Palette generator →

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