#40269C#40269C

#40269C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.178 H 284.4°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#40269C
RGBrgb(64, 38, 156)
HSLhsl(253, 61%, 38%)
HSVhsv(253, 76%, 61%)
CMYKcmyk(59%, 75.6%, 0%, 38.8%)
CIE-LABlab(26.38, 43.58, -59.80)
CIE-LCHlch(26.38, 74.00, 306.09°)
OKLaboklab(38.46% 0.0443 -0.1723)
OKLCHoklch(38.46% 0.178 284.4)
XYZxyz(8.8064, 4.8760, 31.9232)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40269C #829C26
analogous
#26479C #40269C #7B269C
triadic
#40269C #9C4026 #269C40
tetradic
#40269C #9C2647 #829C26 #269C7B
square
#40269C #9C2647 #829C26 #269C7B
split-complementary
#40269C #9C7B26 #479C26
monochromatic
#180E3A #2C1A6B #40269C #5432CD #7D63D9

Accessibility & contrast

On white

10.63
#40269C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#40269C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40269C
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40269C#FFFFFF#000000##FFFFFF
##40269C1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#0B475F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40269c;
/* rgb */ color: rgb(64, 38, 156);
/* oklch */ color: oklch(38.5% 0.178 284.4);
Tailwind
colors: {
  custom: {
    50: '#8064ba',
    500: '#40269c',
    950: '#000000',
  },
}
SCSS
$custom: #40269c;
$custom-light: #8064ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40269c",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 156
  },
  "hsl": {
    "h": 253.22,
    "s": 60.825,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38464,
    "c": 0.17786,
    "h": 284.4
  },
  "luminance": 0.04877
}

Semantic roles & 50–950 ramp

primary
#40269C
secondary
#AABF5F
accent
#E444C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40269C

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

Preview Lab → · Contrast checker → · Palette generator →

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