#403274#403274

#403274 is a dark, moderate violet. Relative luminance 0.046; OKLCH L 36.9% C 0.109 H 289.8°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#403274
RGBrgb(64, 50, 116)
HSLhsl(253, 40%, 33%)
HSVhsv(253, 57%, 45%)
CMYKcmyk(44.8%, 56.9%, 0%, 54.5%)
CIE-LABlab(25.66, 23.92, -36.03)
CIE-LCHlch(25.66, 43.25, 303.58°)
OKLaboklab(36.9% 0.0368 -0.1025)
OKLCHoklch(36.9% 0.109 289.8)
XYZxyz(6.4065, 4.6319, 17.0761)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403274 #667432
analogous
#324574 #403274 #613274
triadic
#403274 #744032 #327440
tetradic
#403274 #743245 #667432 #327461
square
#403274 #743245 #667432 #327461
split-complementary
#403274 #746132 #457432
monochromatic
#110D1E #282049 #403274 #58449F #7764BC

Accessibility & contrast

On white

10.90
#403274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#403274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403274
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403274#FFFFFF#000000##FFFFFF
##4032741.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113E76
Deuteranopia (green-blind)
#133B73
Tritanopia (blue-blind)
#31404E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403274;
/* rgb */ color: rgb(64, 50, 116);
/* oklch */ color: oklch(36.9% 0.109 289.8);
Tailwind
colors: {
  custom: {
    50: '#796a9c',
    500: '#403274',
    950: '#000000',
  },
}
SCSS
$custom: #403274;
$custom-light: #796a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#403274",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 116
  },
  "hsl": {
    "h": 252.727,
    "s": 39.759,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36899,
    "c": 0.10889,
    "h": 289.8
  },
  "luminance": 0.04632
}

Semantic roles & 50–950 ramp

primary
#403274
secondary
#95A45E
accent
#D058B6
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #403274

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

Preview Lab → · Contrast checker → · Palette generator →

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