#40489B#40489B

#40489B is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.1% C 0.134 H 275.3°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#40489B
RGBrgb(64, 72, 155)
HSLhsl(235, 42%, 43%)
HSVhsv(235, 59%, 61%)
CMYKcmyk(58.7%, 53.5%, 0%, 39.2%)
CIE-LABlab(34.17, 22.48, -46.50)
CIE-LCHlch(34.17, 51.65, 295.80°)
OKLaboklab(44.13% 0.0125 -0.1331)
OKLCHoklch(44.13% 0.134 275.3)
XYZxyz(10.3462, 8.0905, 32.0204)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40489B #9B9340
analogous
#40769B #40489B #65409B
triadic
#40489B #9B4048 #489B40
tetradic
#40489B #9B4076 #9B9340 #409B65
square
#40489B #9B4076 #9B9340 #409B65
split-complementary
#40489B #9B6540 #769B40
monochromatic
#1C2044 #2E3470 #40489B #5C65BC #888ECE

Accessibility & contrast

On white

8.02
#40489B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#40489B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40489B
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40489B#FFFFFF#000000##FFFFFF
##40489B1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18549E
Deuteranopia (green-blind)
#004D99
Tritanopia (blue-blind)
#035B6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #40489b;
/* rgb */ color: rgb(64, 72, 155);
/* oklch */ color: oklch(44.1% 0.134 275.3);
Tailwind
colors: {
  custom: {
    50: '#7d7ab9',
    500: '#40489b',
    950: '#000000',
  },
}
SCSS
$custom: #40489b;
$custom-light: #7d7ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#40489b",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 155
  },
  "hsl": {
    "h": 234.725,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44125,
    "c": 0.13369,
    "h": 275.3
  },
  "luminance": 0.08091
}

Semantic roles & 50–950 ramp

primary
#40489B
secondary
#B8B37E
accent
#C756D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0911
muted
#7C7B80

Preview Lab

Preview with #40489B

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

Preview Lab → · Contrast checker → · Palette generator →

#40489B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva