#402269#402269

#402269 is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.3% C 0.119 H 299.3°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#402269
RGBrgb(64, 34, 105)
HSLhsl(265, 51%, 27%)
HSVhsv(265, 68%, 41%)
CMYKcmyk(39%, 67.6%, 0%, 58.8%)
CIE-LABlab(21.03, 30.62, -36.40)
CIE-LCHlch(21.03, 47.57, 310.07°)
OKLaboklab(33.25% 0.0581 -0.1036)
OKLCHoklch(33.25% 0.119 299.3)
XYZxyz(5.2356, 3.2539, 13.7141)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402269 #4B6922
analogous
#222869 #402269 #642269
triadic
#402269 #694022 #226940
tetradic
#402269 #692228 #4B6922 #226964
square
#402269 #692228 #4B6922 #226964
split-complementary
#402269 #696422 #286922
monochromatic
#0E0717 #24133B #402269 #5C3197 #7943C2

Accessibility & contrast

On white

12.72
#402269 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#402269 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402269
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402269#FFFFFF#000000##FFFFFF
##4022691.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326B
Deuteranopia (green-blind)
#013267
Tritanopia (blue-blind)
#373242
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #402269;
/* rgb */ color: rgb(64, 34, 105);
/* oklch */ color: oklch(33.3% 0.119 299.3);
Tailwind
colors: {
  custom: {
    50: '#785f94',
    500: '#402269',
    950: '#000000',
  },
}
SCSS
$custom: #402269;
$custom-light: #785f94;
$custom-dark: #000000;
JSON
{
  "hex": "#402269",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 105
  },
  "hsl": {
    "h": 265.352,
    "s": 51.079,
    "l": 27.255
  },
  "oklch": {
    "l": 0.33251,
    "c": 0.11874,
    "h": 299.3
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#402269
secondary
#7A9D4A
accent
#DB4D9F
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09050D
muted
#7B797E

Preview Lab

Preview with #402269

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

Preview Lab → · Contrast checker → · Palette generator →

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