#403277#403277

#403277 is a dark, moderate violet. Relative luminance 0.047; OKLCH L 37.1% C 0.113 H 289.0°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#403277
RGBrgb(64, 50, 119)
HSLhsl(252, 41%, 33%)
HSVhsv(252, 58%, 47%)
CMYKcmyk(46.2%, 58%, 0%, 53.3%)
CIE-LABlab(25.87, 24.87, -37.59)
CIE-LCHlch(25.87, 45.07, 303.48°)
OKLaboklab(37.12% 0.0369 -0.1071)
OKLCHoklch(37.12% 0.113 289)
XYZxyz(6.5838, 4.7029, 18.0100)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403277 #697732
analogous
#324677 #403277 #623277
triadic
#403277 #774032 #327740
tetradic
#403277 #773246 #697732 #327762
square
#403277 #773246 #697732 #327762
split-complementary
#403277 #776232 #467732
monochromatic
#120E21 #29204C #403277 #5744A2 #7765BE

Accessibility & contrast

On white

10.82
#403277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#403277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403277
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403277#FFFFFF#000000##FFFFFF
##4032771.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3F79
Deuteranopia (green-blind)
#0E3C75
Tritanopia (blue-blind)
#2F414F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403277;
/* rgb */ color: rgb(64, 50, 119);
/* oklch */ color: oklch(37.1% 0.113 289.0);
Tailwind
colors: {
  custom: {
    50: '#796a9f',
    500: '#403277',
    950: '#000000',
  },
}
SCSS
$custom: #403277;
$custom-light: #796a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#403277",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 119
  },
  "hsl": {
    "h": 252.174,
    "s": 40.828,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37123,
    "c": 0.11326,
    "h": 289
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#403277
secondary
#98A65F
accent
#D157B8
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #403277

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

Preview Lab → · Contrast checker → · Palette generator →

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