#40225B#40225B

#40225B is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.2% C 0.100 H 305.8°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#40225B
RGBrgb(64, 34, 91)
HSLhsl(272, 46%, 25%)
HSVhsv(272, 63%, 36%)
CMYKcmyk(29.7%, 62.6%, 0%, 64.3%)
CIE-LABlab(20.00, 26.69, -28.86)
CIE-LCHlch(20.00, 39.31, 312.77°)
OKLaboklab(32.17% 0.0587 -0.0814)
OKLCHoklch(32.17% 0.1 305.8)
XYZxyz(4.5743, 2.9894, 10.2315)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40225B #3D5B22
analogous
#24225B #40225B #5B225A
triadic
#40225B #5B4022 #225B40
tetradic
#40225B #5B2422 #3D5B22 #225A5B
square
#40225B #5B2422 #3D5B22 #225A5B
split-complementary
#40225B #5A5B22 #225B24
monochromatic
#100816 #21112E #40225B #5F3388 #7F43B4

Accessibility & contrast

On white

13.14
#40225B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#40225B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40225B
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40225B#FFFFFF#000000##FFFFFF
##40225B1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2F5D
Deuteranopia (green-blind)
#17305A
Tritanopia (blue-blind)
#3B2D3B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #40225b;
/* rgb */ color: rgb(64, 34, 91);
/* oklch */ color: oklch(32.2% 0.100 305.8);
Tailwind
colors: {
  custom: {
    50: '#775e8a',
    500: '#40225b',
    950: '#000000',
  },
}
SCSS
$custom: #40225b;
$custom-light: #775e8a;
$custom-dark: #000000;
JSON
{
  "hex": "#40225b",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 91
  },
  "hsl": {
    "h": 271.579,
    "s": 45.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.32171,
    "c": 0.10036,
    "h": 305.8
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#40225B
secondary
#6B8F4A
accent
#D55390
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040B
muted
#7B797C

Preview Lab

Preview with #40225B

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

Preview Lab → · Contrast checker → · Palette generator →

#40225B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva