#40289B#40289B

#40289B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.175 H 284.3°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#40289B
RGBrgb(64, 40, 155)
HSLhsl(253, 59%, 38%)
HSVhsv(253, 74%, 61%)
CMYKcmyk(58.7%, 74.2%, 0%, 39.2%)
CIE-LABlab(26.66, 42.21, -58.73)
CIE-LCHlch(26.66, 72.32, 305.71°)
OKLaboklab(38.63% 0.043 -0.1691)
OKLCHoklch(38.63% 0.175 284.3)
XYZxyz(8.7877, 4.9736, 31.5009)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40289B #839B28
analogous
#28499B #40289B #79289B
triadic
#40289B #9B4028 #289B40
tetradic
#40289B #9B2849 #839B28 #289B79
square
#40289B #9B2849 #839B28 #289B79
split-complementary
#40289B #9B7928 #499B28
monochromatic
#180F3A #2C1B6A #40289B #5435CB #7E66D7

Accessibility & contrast

On white

10.53
#40289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#40289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40289B
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40289B#FFFFFF#000000##FFFFFF
##40289B1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#0D485F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40289b;
/* rgb */ color: rgb(64, 40, 155);
/* oklch */ color: oklch(38.6% 0.175 284.3);
Tailwind
colors: {
  custom: {
    50: '#8065ba',
    500: '#40289b',
    950: '#000000',
  },
}
SCSS
$custom: #40289b;
$custom-light: #8065ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40289b",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 252.522,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38633,
    "c": 0.17452,
    "h": 284.3
  },
  "luminance": 0.04974
}

Semantic roles & 50–950 ramp

primary
#40289B
secondary
#AABD61
accent
#E246C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40289B

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

Preview Lab → · Contrast checker → · Palette generator →

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