#403095#403095

#403095 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.157 H 283.7°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#403095
RGBrgb(64, 48, 149)
HSLhsl(250, 51%, 39%)
HSVhsv(250, 68%, 58%)
CMYKcmyk(57%, 67.8%, 0%, 41.6%)
CIE-LABlab(27.77, 35.75, -53.23)
CIE-LCHlch(27.77, 64.12, 303.88°)
OKLaboklab(39.26% 0.0372 -0.153)
OKLCHoklch(39.26% 0.157 283.7)
XYZxyz(8.5945, 5.3733, 29.0122)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403095 #859530
analogous
#305295 #403095 #723095
triadic
#403095 #954030 #309540
tetradic
#403095 #953052 #859530 #309572
square
#403095 #953052 #859530 #309572
split-complementary
#403095 #957230 #529530
monochromatic
#181238 #2C2167 #403095 #5541C2 #7E6FD1

Accessibility & contrast

On white

10.12
#403095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#403095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403095
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403095#FFFFFF#000000##FFFFFF
##4030951.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#174A5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403095;
/* rgb */ color: rgb(64, 48, 149);
/* oklch */ color: oklch(39.3% 0.157 283.7);
Tailwind
colors: {
  custom: {
    50: '#7e69b5',
    500: '#403095',
    950: '#000000',
  },
}
SCSS
$custom: #403095;
$custom-light: #7e69b5;
$custom-dark: #000000;
JSON
{
  "hex": "#403095",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 149
  },
  "hsl": {
    "h": 249.505,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39261,
    "c": 0.15749,
    "h": 283.7
  },
  "luminance": 0.05374
}

Semantic roles & 50–950 ramp

primary
#403095
secondary
#ACB869
accent
#DB4DC4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #403095

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

Preview Lab → · Contrast checker → · Palette generator →

#403095 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva