#403097#403097

#403097 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.160 H 283.3°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#403097
RGBrgb(64, 48, 151)
HSLhsl(249, 52%, 39%)
HSVhsv(249, 68%, 59%)
CMYKcmyk(57.6%, 68.2%, 0%, 40.8%)
CIE-LABlab(27.95, 36.39, -54.17)
CIE-LCHlch(27.95, 65.26, 303.89°)
OKLaboklab(39.44% 0.0369 -0.1558)
OKLCHoklch(39.44% 0.16 283.3)
XYZxyz(8.7555, 5.4377, 29.8604)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403097 #879730
analogous
#305497 #403097 #743097
triadic
#403097 #974030 #309740
tetradic
#403097 #973054 #879730 #309774
square
#403097 #973054 #879730 #309774
split-complementary
#403097 #977430 #549730
monochromatic
#19123A #2C2169 #403097 #5641C3 #7F70D2

Accessibility & contrast

On white

10.06
#403097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#403097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403097
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403097#FFFFFF#000000##FFFFFF
##4030971.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#144A5F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403097;
/* rgb */ color: rgb(64, 48, 151);
/* oklch */ color: oklch(39.4% 0.160 283.3);
Tailwind
colors: {
  custom: {
    50: '#7e69b6',
    500: '#403097',
    950: '#000000',
  },
}
SCSS
$custom: #403097;
$custom-light: #7e69b6;
$custom-dark: #000000;
JSON
{
  "hex": "#403097",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 151
  },
  "hsl": {
    "h": 249.32,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3944,
    "c": 0.16012,
    "h": 283.3
  },
  "luminance": 0.05438
}

Semantic roles & 50–950 ramp

primary
#403097
secondary
#ADB96A
accent
#DB4DC5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #403097

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

Preview Lab → · Contrast checker → · Palette generator →

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