#403BAF#403BAF

#403BAF is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.4% C 0.178 H 277.9°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#403BAF
RGBrgb(64, 59, 175)
HSLhsl(243, 50%, 46%)
HSVhsv(243, 66%, 69%)
CMYKcmyk(63.4%, 66.3%, 0%, 31.4%)
CIE-LABlab(32.51, 37.60, -61.21)
CIE-LCHlch(32.51, 71.83, 301.56°)
OKLaboklab(43.39% 0.0244 -0.1764)
OKLCHoklch(43.39% 0.178 277.9)
XYZxyz(11.4137, 7.3122, 41.3590)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BAF #AAAF3B
analogous
#3B70AF #403BAF #7A3BAF
triadic
#403BAF #AF403B #3BAF40
tetradic
#403BAF #AF3B70 #AAAF3B #3BAF7A
square
#403BAF #AF3B70 #AAAF3B #3BAF7A
split-complementary
#403BAF #AF7A3B #70AF3B
monochromatic
#1F1C53 #2F2C81 #403BAF #635EC9 #8F8CD8

Accessibility & contrast

On white

8.53
#403BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#403BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BAF
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BAF#FFFFFF#000000##FFFFFF
##403BAF1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403baf;
/* rgb */ color: rgb(64, 59, 175);
/* oklch */ color: oklch(43.4% 0.178 277.9);
Tailwind
colors: {
  custom: {
    50: '#8272c8',
    500: '#403baf',
    950: '#000000',
  },
}
SCSS
$custom: #403baf;
$custom-light: #8272c8;
$custom-dark: #000000;
JSON
{
  "hex": "#403baf",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 175
  },
  "hsl": {
    "h": 242.586,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43386,
    "c": 0.17812,
    "h": 277.9
  },
  "luminance": 0.07313
}

Semantic roles & 50–950 ramp

primary
#403BAF
secondary
#C0C383
accent
#D94FD3
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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