#40489C#40489C

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

Color values

HEX#40489C
RGBrgb(64, 72, 156)
HSLhsl(235, 42%, 43%)
HSVhsv(235, 59%, 61%)
CMYKcmyk(59%, 53.8%, 0%, 38.8%)
CIE-LABlab(34.24, 22.83, -46.99)
CIE-LCHlch(34.24, 52.24, 295.91°)
OKLaboklab(44.2% 0.0125 -0.1346)
OKLCHoklch(44.2% 0.135 275.3)
XYZxyz(10.4305, 8.1243, 32.4645)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40489C #9C9440
analogous
#40769C #40489C #66409C
triadic
#40489C #9C4048 #489C40
tetradic
#40489C #9C4076 #9C9440 #409C66
square
#40489C #9C4076 #9C9440 #409C66
split-complementary
#40489C #9C6640 #769C40
monochromatic
#1C2045 #2E3471 #40489C #5D65BC #888ECE

Accessibility & contrast

On white

8.00
#40489C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#40489C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40489C
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40489C#FFFFFF#000000##FFFFFF
##40489C1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16559F
Deuteranopia (green-blind)
#004D9A
Tritanopia (blue-blind)
#005B6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40489c;
/* rgb */ color: rgb(64, 72, 156);
/* oklch */ color: oklch(44.2% 0.135 275.3);
Tailwind
colors: {
  custom: {
    50: '#7d7aba',
    500: '#40489c',
    950: '#000000',
  },
}
SCSS
$custom: #40489c;
$custom-light: #7d7aba;
$custom-dark: #000000;
JSON
{
  "hex": "#40489c",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 156
  },
  "hsl": {
    "h": 234.783,
    "s": 41.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.442,
    "c": 0.13514,
    "h": 275.3
  },
  "luminance": 0.08125
}

Semantic roles & 50–950 ramp

primary
#40489C
secondary
#B9B47F
accent
#C756D2
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #40489C

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

Preview Lab → · Contrast checker → · Palette generator →

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