#403D95#403D95

#403D95 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.140 H 279.9°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#403D95
RGBrgb(64, 61, 149)
HSLhsl(242, 42%, 41%)
HSVhsv(242, 59%, 58%)
CMYKcmyk(57%, 59.1%, 0%, 41.6%)
CIE-LABlab(30.87, 27.59, -48.19)
CIE-LCHlch(30.87, 55.53, 299.80°)
OKLaboklab(41.53% 0.0241 -0.1382)
OKLCHoklch(41.53% 0.14 279.9)
XYZxyz(9.2062, 6.5968, 29.2161)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D95 #92953D
analogous
#3D6695 #403D95 #6C3D95
triadic
#403D95 #95403D #3D9540
tetradic
#403D95 #953D66 #92953D #3D956C
square
#403D95 #953D66 #92953D #3D956C
split-complementary
#403D95 #956C3D #66953D
monochromatic
#1B193E #2D2B6A #403D95 #5956BA #8481CB

Accessibility & contrast

On white

9.05
#403D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#403D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D95
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D95#FFFFFF#000000##FFFFFF
##403D951.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#004593
Tritanopia (blue-blind)
#145263
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403d95;
/* rgb */ color: rgb(64, 61, 149);
/* oklch */ color: oklch(41.5% 0.140 279.9);
Tailwind
colors: {
  custom: {
    50: '#7d72b5',
    500: '#403d95',
    950: '#000000',
  },
}
SCSS
$custom: #403d95;
$custom-light: #7d72b5;
$custom-dark: #000000;
JSON
{
  "hex": "#403d95",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 149
  },
  "hsl": {
    "h": 242.045,
    "s": 41.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41526,
    "c": 0.14026,
    "h": 279.9
  },
  "luminance": 0.06597
}

Semantic roles & 50–950 ramp

primary
#403D95
secondary
#B3B578
accent
#D256CD
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403D95

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

Preview Lab → · Contrast checker → · Palette generator →

#403D95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva