#40268F#40268F

#40268F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.162 H 287.0°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#40268F
RGBrgb(64, 38, 143)
HSLhsl(255, 58%, 35%)
HSVhsv(255, 73%, 56%)
CMYKcmyk(55.2%, 73.4%, 0%, 43.9%)
CIE-LABlab(25.13, 39.64, -53.84)
CIE-LCHlch(25.13, 66.86, 306.36°)
OKLaboklab(37.21% 0.0474 -0.1548)
OKLCHoklch(37.21% 0.162 287)
XYZxyz(7.7639, 4.4590, 26.4328)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40268F #758F26
analogous
#26408F #40268F #74268F
triadic
#40268F #8F4026 #268F40
tetradic
#40268F #8F2640 #758F26 #268F74
square
#40268F #8F2640 #758F26 #268F74
split-complementary
#40268F #8F7426 #408F26
monochromatic
#150C2E #2A195F #40268F #5633BF #795CD4

Accessibility & contrast

On white

11.10
#40268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#40268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40268F
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40268F#FFFFFF#000000##FFFFFF
##40268F1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#1F4258
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #40268f;
/* rgb */ color: rgb(64, 38, 143);
/* oklch */ color: oklch(37.2% 0.162 287.0);
Tailwind
colors: {
  custom: {
    50: '#7e63b1',
    500: '#40268f',
    950: '#000000',
  },
}
SCSS
$custom: #40268f;
$custom-light: #7e63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#40268f",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 254.857,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37206,
    "c": 0.16192,
    "h": 287
  },
  "luminance": 0.04459
}

Semantic roles & 50–950 ramp

primary
#40268F
secondary
#A1B958
accent
#E147BB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #40268F

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

Preview Lab → · Contrast checker → · Palette generator →

#40268F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva