#40269B#40269B

#40269B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.177 H 284.6°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#40269B
RGBrgb(64, 38, 155)
HSLhsl(253, 61%, 38%)
HSVhsv(253, 75%, 61%)
CMYKcmyk(58.7%, 75.5%, 0%, 39.2%)
CIE-LABlab(26.28, 43.28, -59.35)
CIE-LCHlch(26.28, 73.46, 306.10°)
OKLaboklab(38.37% 0.0445 -0.1709)
OKLCHoklch(38.37% 0.177 284.6)
XYZxyz(8.7221, 4.8422, 31.4790)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40269B #819B26
analogous
#26479B #40269B #7A269B
triadic
#40269B #9B4026 #269B40
tetradic
#40269B #9B2647 #819B26 #269B7A
square
#40269B #9B2647 #819B26 #269B7A
split-complementary
#40269B #9B7A26 #479B26
monochromatic
#170E39 #2C1A6A #40269B #5432CC #7D63D9

Accessibility & contrast

On white

10.67
#40269B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#40269B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40269B
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40269B#FFFFFF#000000##FFFFFF
##40269B1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#0E475F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40269b;
/* rgb */ color: rgb(64, 38, 155);
/* oklch */ color: oklch(38.4% 0.177 284.6);
Tailwind
colors: {
  custom: {
    50: '#8063ba',
    500: '#40269b',
    950: '#000000',
  },
}
SCSS
$custom: #40269b;
$custom-light: #8063ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40269b",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 155
  },
  "hsl": {
    "h": 253.333,
    "s": 60.622,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38366,
    "c": 0.17665,
    "h": 284.6
  },
  "luminance": 0.04843
}

Semantic roles & 50–950 ramp

primary
#40269B
secondary
#A9BE5F
accent
#E444C0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40269B

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

Preview Lab → · Contrast checker → · Palette generator →

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