#403273#403273

#403273 is a dark, moderate violet. Relative luminance 0.046; OKLCH L 36.8% C 0.107 H 290.0°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#403273
RGBrgb(64, 50, 115)
HSLhsl(253, 39%, 32%)
HSVhsv(253, 57%, 45%)
CMYKcmyk(44.3%, 56.5%, 0%, 54.9%)
CIE-LABlab(25.59, 23.60, -35.50)
CIE-LCHlch(25.59, 42.63, 303.62°)
OKLaboklab(36.83% 0.0368 -0.1009)
OKLCHoklch(36.83% 0.107 290)
XYZxyz(6.3486, 4.6088, 16.7714)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403273 #657332
analogous
#324573 #403273 #613273
triadic
#403273 #734032 #327340
tetradic
#403273 #733245 #657332 #327361
square
#403273 #733245 #657332 #327361
split-complementary
#403273 #736132 #457332
monochromatic
#110D1E #281F48 #403273 #58459E #7764BC

Accessibility & contrast

On white

10.93
#403273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#403273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403273
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403273#FFFFFF#000000##FFFFFF
##4032731.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123E75
Deuteranopia (green-blind)
#143B72
Tritanopia (blue-blind)
#31404D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403273;
/* rgb */ color: rgb(64, 50, 115);
/* oklch */ color: oklch(36.8% 0.107 290.0);
Tailwind
colors: {
  custom: {
    50: '#786a9c',
    500: '#403273',
    950: '#000000',
  },
}
SCSS
$custom: #403273;
$custom-light: #786a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#403273",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 115
  },
  "hsl": {
    "h": 252.923,
    "s": 39.394,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36825,
    "c": 0.10742,
    "h": 290
  },
  "luminance": 0.04609
}

Semantic roles & 50–950 ramp

primary
#403273
secondary
#94A35D
accent
#CF59B6
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #403273

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

Preview Lab → · Contrast checker → · Palette generator →

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