#40267C#40267C

#40267C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.138 H 291.7°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#40267C
RGBrgb(64, 38, 124)
HSLhsl(258, 53%, 32%)
HSVhsv(258, 69%, 49%)
CMYKcmyk(48.4%, 69.4%, 0%, 51.4%)
CIE-LABlab(23.44, 33.87, -44.70)
CIE-LCHlch(23.44, 56.08, 307.16°)
OKLaboklab(35.47% 0.051 -0.128)
OKLCHoklch(35.47% 0.138 291.7)
XYZxyz(6.4445, 3.9312, 19.4841)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40267C #627C26
analogous
#26377C #40267C #6B267C
triadic
#40267C #7C4026 #267C40
tetradic
#40267C #7C2637 #627C26 #267C6B
square
#40267C #7C2637 #627C26 #267C6B
split-complementary
#40267C #7C6B26 #377C26
monochromatic
#10091E #28184D #40267C #5834AB #7752CA

Accessibility & contrast

On white

11.76
#40267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#40267C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40267C
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40267C#FFFFFF#000000##FFFFFF
##40267C1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#2E3B4D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #40267c;
/* rgb */ color: rgb(64, 38, 124);
/* oklch */ color: oklch(35.5% 0.138 291.7);
Tailwind
colors: {
  custom: {
    50: '#7b62a3',
    500: '#40267c',
    950: '#000000',
  },
}
SCSS
$custom: #40267c;
$custom-light: #7b62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#40267c",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 258.14,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35474,
    "c": 0.13776,
    "h": 291.7
  },
  "luminance": 0.03931
}

Semantic roles & 50–950 ramp

primary
#40267C
secondary
#92AE50
accent
#DC4BB1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #40267C

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

Preview Lab → · Contrast checker → · Palette generator →

#40267C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva