#40267D#40267D

#40267D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.6% C 0.139 H 291.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#40267D
RGBrgb(64, 38, 125)
HSLhsl(258, 53%, 32%)
HSVhsv(258, 70%, 49%)
CMYKcmyk(48.8%, 69.6%, 0%, 51%)
CIE-LABlab(23.53, 34.18, -45.19)
CIE-LCHlch(23.53, 56.66, 307.10°)
OKLaboklab(35.56% 0.0508 -0.1294)
OKLCHoklch(35.56% 0.139 291.4)
XYZxyz(6.5081, 3.9567, 19.8189)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40267D #637D26
analogous
#26387D #40267D #6C267D
triadic
#40267D #7D4026 #267D40
tetradic
#40267D #7D2638 #637D26 #267D6C
square
#40267D #7D2638 #637D26 #267D6C
split-complementary
#40267D #7D6C26 #387D26
monochromatic
#10091F #28184E #40267D #5834AC #7753CB

Accessibility & contrast

On white

11.72
#40267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40267D
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40267D#FFFFFF#000000##FFFFFF
##40267D1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#2D3B4E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #40267d;
/* rgb */ color: rgb(64, 38, 125);
/* oklch */ color: oklch(35.6% 0.139 291.4);
Tailwind
colors: {
  custom: {
    50: '#7b62a3',
    500: '#40267d',
    950: '#000000',
  },
}
SCSS
$custom: #40267d;
$custom-light: #7b62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#40267d",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 257.931,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35562,
    "c": 0.13906,
    "h": 291.4
  },
  "luminance": 0.03957
}

Semantic roles & 50–950 ramp

primary
#40267D
secondary
#93AF50
accent
#DD4BB1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #40267D

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

Preview Lab → · Contrast checker → · Palette generator →

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