#402260#402260

#402260 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.5% C 0.107 H 303.2°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#402260
RGBrgb(64, 34, 96)
HSLhsl(269, 48%, 25%)
HSVhsv(269, 65%, 38%)
CMYKcmyk(33.3%, 64.6%, 0%, 62.4%)
CIE-LABlab(20.36, 28.07, -31.60)
CIE-LCHlch(20.36, 42.27, 311.62°)
OKLaboklab(32.54% 0.0586 -0.0895)
OKLCHoklch(32.54% 0.107 303.2)
XYZxyz(4.7972, 3.0786, 11.4056)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402260 #426022
analogous
#222360 #402260 #5F2260
triadic
#402260 #604022 #226040
tetradic
#402260 #602223 #426022 #22605F
square
#402260 #602223 #426022 #22605F
split-complementary
#402260 #605F22 #236022
monochromatic
#0F0817 #221233 #402260 #5E328D #7C42BA

Accessibility & contrast

On white

13.00
#402260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#402260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402260
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402260#FFFFFF#000000##FFFFFF
##4022601.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023062
Deuteranopia (green-blind)
#12315F
Tritanopia (blue-blind)
#3A2F3D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #402260;
/* rgb */ color: rgb(64, 34, 96);
/* oklch */ color: oklch(32.5% 0.107 303.2);
Tailwind
colors: {
  custom: {
    50: '#775f8e',
    500: '#402260',
    950: '#000000',
  },
}
SCSS
$custom: #402260;
$custom-light: #775f8e;
$custom-dark: #000000;
JSON
{
  "hex": "#402260",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 96
  },
  "hsl": {
    "h": 269.032,
    "s": 47.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32544,
    "c": 0.10696,
    "h": 303.2
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#402260
secondary
#70944A
accent
#D75196
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #402260

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

Preview Lab → · Contrast checker → · Palette generator →

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