#403C8E#403C8E

#403C8E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.132 H 281.0°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#403C8E
RGBrgb(64, 60, 142)
HSLhsl(243, 41%, 40%)
HSVhsv(243, 58%, 56%)
CMYKcmyk(54.9%, 57.7%, 0%, 44.3%)
CIE-LABlab(30.09, 25.89, -45.15)
CIE-LCHlch(30.09, 52.05, 299.83°)
OKLaboklab(40.78% 0.0252 -0.1292)
OKLCHoklch(40.78% 0.132 281)
XYZxyz(8.6112, 6.2742, 26.3432)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C8E #8A8E3C
analogous
#3C618E #403C8E #693C8E
triadic
#403C8E #8E403C #3C8E40
tetradic
#403C8E #8E3C61 #8A8E3C #3C8E69
square
#403C8E #8E3C61 #8A8E3C #3C8E69
split-complementary
#403C8E #8E693C #618E3C
monochromatic
#191838 #2D2A63 #403C8E #5652B6 #807DC8

Accessibility & contrast

On white

9.31
#403C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#403C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C8E
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C8E#FFFFFF#000000##FFFFFF
##403C8E1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#1D4F5F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #403c8e;
/* rgb */ color: rgb(64, 60, 142);
/* oklch */ color: oklch(40.8% 0.132 281.0);
Tailwind
colors: {
  custom: {
    50: '#7c72b0',
    500: '#403c8e',
    950: '#000000',
  },
}
SCSS
$custom: #403c8e;
$custom-light: #7c72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#403c8e",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 142
  },
  "hsl": {
    "h": 242.927,
    "s": 40.594,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40785,
    "c": 0.13168,
    "h": 281
  },
  "luminance": 0.06275
}

Semantic roles & 50–950 ramp

primary
#403C8E
secondary
#AFB274
accent
#D057CB
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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