#40489A#40489A

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

Color values

HEX#40489A
RGBrgb(64, 72, 154)
HSLhsl(235, 41%, 43%)
HSVhsv(235, 58%, 60%)
CMYKcmyk(58.4%, 53.2%, 0%, 39.6%)
CIE-LABlab(34.10, 22.14, -46.01)
CIE-LCHlch(34.10, 51.05, 295.70°)
OKLaboklab(44.05% 0.0124 -0.1317)
OKLCHoklch(44.05% 0.132 275.4)
XYZxyz(10.2626, 8.0571, 31.5800)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40489A #9A9240
analogous
#40759A #40489A #65409A
triadic
#40489A #9A4048 #489A40
tetradic
#40489A #9A4075 #9A9240 #409A65
square
#40489A #9A4075 #9A9240 #409A65
split-complementary
#40489A #9A6540 #759A40
monochromatic
#1C2044 #2E346F #40489A #5C64BB #878DCD

Accessibility & contrast

On white

8.04
#40489A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#40489A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40489A
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40489A#FFFFFF#000000##FFFFFF
##40489A1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19549D
Deuteranopia (green-blind)
#034D98
Tritanopia (blue-blind)
#055B6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #40489a;
/* rgb */ color: rgb(64, 72, 154);
/* oklch */ color: oklch(44.1% 0.132 275.4);
Tailwind
colors: {
  custom: {
    50: '#7d7ab8',
    500: '#40489a',
    950: '#000000',
  },
}
SCSS
$custom: #40489a;
$custom-light: #7d7ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#40489a",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 154
  },
  "hsl": {
    "h": 234.667,
    "s": 41.284,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44051,
    "c": 0.13224,
    "h": 275.4
  },
  "luminance": 0.08058
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40489A

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

Preview Lab → · Contrast checker → · Palette generator →

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