#403BA8#403BA8

#403BA8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.8% C 0.169 H 278.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#403BA8
RGBrgb(64, 59, 168)
HSLhsl(243, 48%, 45%)
HSVhsv(243, 65%, 66%)
CMYKcmyk(61.9%, 64.9%, 0%, 34.1%)
CIE-LABlab(31.91, 35.26, -58.00)
CIE-LCHlch(31.91, 67.88, 301.29°)
OKLaboklab(42.76% 0.0251 -0.167)
OKLCHoklch(42.76% 0.169 278.5)
XYZxyz(10.7439, 7.0443, 37.8317)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BA8 #A3A83B
analogous
#3B6DA8 #403BA8 #773BA8
triadic
#403BA8 #A8403B #3BA840
tetradic
#403BA8 #A83B6D #A3A83B #3BA877
square
#403BA8 #A83B6D #A3A83B #3BA877
split-complementary
#403BA8 #A8773B #6DA83B
monochromatic
#1D1B4D #2F2B7B #403BA8 #605BC5 #8C88D5

Accessibility & contrast

On white

8.72
#403BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#403BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BA8
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BA8#FFFFFF#000000##FFFFFF
##403BA81.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403ba8;
/* rgb */ color: rgb(64, 59, 168);
/* oklch */ color: oklch(42.8% 0.169 278.5);
Tailwind
colors: {
  custom: {
    50: '#8071c3',
    500: '#403ba8',
    950: '#000000',
  },
}
SCSS
$custom: #403ba8;
$custom-light: #8071c3;
$custom-dark: #000000;
JSON
{
  "hex": "#403ba8",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 168
  },
  "hsl": {
    "h": 242.752,
    "s": 48.018,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42764,
    "c": 0.16891,
    "h": 278.5
  },
  "luminance": 0.07045
}

Semantic roles & 50–950 ramp

primary
#403BA8
secondary
#BDC07F
accent
#D850D1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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