#403268#403268

#403268 is a dark, moderate violet. Relative luminance 0.044; OKLCH L 36.0% C 0.091 H 293.2°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#403268
RGBrgb(64, 50, 104)
HSLhsl(256, 35%, 30%)
HSVhsv(256, 52%, 41%)
CMYKcmyk(38.5%, 51.9%, 0%, 59.2%)
CIE-LABlab(24.86, 20.19, -29.61)
CIE-LCHlch(24.86, 35.84, 304.29°)
OKLaboklab(36.05% 0.0359 -0.0836)
OKLCHoklch(36.05% 0.091 293.2)
XYZxyz(5.7530, 4.3705, 13.6345)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403268 #5A6832
analogous
#323F68 #403268 #5B3268
triadic
#403268 #684032 #326840
tetradic
#403268 #68323F #5A6832 #32685B
square
#403268 #68323F #5A6832 #32685B
split-complementary
#403268 #685B32 #3F6832
monochromatic
#0D0A15 #271E3F #403268 #594691 #7661B3

Accessibility & contrast

On white

11.20
#403268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#403268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403268
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403268#FFFFFF#000000##FFFFFF
##4032681.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3C6A
Deuteranopia (green-blind)
#203A67
Tritanopia (blue-blind)
#363D48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #403268;
/* rgb */ color: rgb(64, 50, 104);
/* oklch */ color: oklch(36.0% 0.091 293.2);
Tailwind
colors: {
  custom: {
    50: '#776a93',
    500: '#403268',
    950: '#000000',
  },
}
SCSS
$custom: #403268;
$custom-light: #776a93;
$custom-dark: #000000;
JSON
{
  "hex": "#403268",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 104
  },
  "hsl": {
    "h": 255.556,
    "s": 35.065,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36046,
    "c": 0.09102,
    "h": 293.2
  },
  "luminance": 0.04371
}

Semantic roles & 50–950 ramp

primary
#403268
secondary
#89995D
accent
#CB5DAE
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09060D
muted
#7B7A7E

Preview Lab

Preview with #403268

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

Preview Lab → · Contrast checker → · Palette generator →

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