#403287#403287

#403287 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.136 H 285.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#403287
RGBrgb(64, 50, 135)
HSLhsl(250, 46%, 36%)
HSVhsv(250, 63%, 53%)
CMYKcmyk(52.6%, 63%, 0%, 47.1%)
CIE-LABlab(27.07, 30.00, -45.71)
CIE-LCHlch(27.07, 54.67, 303.28°)
OKLaboklab(38.39% 0.0365 -0.1309)
OKLCHoklch(38.39% 0.136 285.6)
XYZxyz(7.6268, 5.1201, 23.5034)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403287 #798732
analogous
#324F87 #403287 #6B3287
triadic
#403287 #874032 #328740
tetradic
#403287 #87324F #798732 #32876B
square
#403287 #87324F #798732 #32876B
split-complementary
#403287 #876B32 #4F8732
monochromatic
#16112E #2B215A #403287 #5543B4 #7A6BC8

Accessibility & contrast

On white

10.38
#403287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#403287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403287
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403287#FFFFFF#000000##FFFFFF
##4032871.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#254657
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #403287;
/* rgb */ color: rgb(64, 50, 135);
/* oklch */ color: oklch(38.4% 0.136 285.6);
Tailwind
colors: {
  custom: {
    50: '#7b6aab',
    500: '#403287',
    950: '#000000',
  },
}
SCSS
$custom: #403287;
$custom-light: #7b6aab;
$custom-dark: #000000;
JSON
{
  "hex": "#403287",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 249.882,
    "s": 45.946,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3839,
    "c": 0.13594,
    "h": 285.6
  },
  "luminance": 0.0512
}

Semantic roles & 50–950 ramp

primary
#403287
secondary
#A4B065
accent
#D652C0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #403287

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

Preview Lab → · Contrast checker → · Palette generator →

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