#40458E#40458E

#40458E is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.6% C 0.119 H 277.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#40458E
RGBrgb(64, 69, 142)
HSLhsl(236, 38%, 40%)
HSVhsv(236, 55%, 56%)
CMYKcmyk(54.9%, 51.4%, 0%, 44.3%)
CIE-LABlab(32.48, 19.98, -41.31)
CIE-LCHlch(32.48, 45.89, 295.81°)
OKLaboklab(42.57% 0.0148 -0.1179)
OKLCHoklch(42.57% 0.119 277.1)
XYZxyz(9.1234, 7.2986, 26.5140)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40458E #8E8940
analogous
#406C8E #40458E #62408E
triadic
#40458E #8E4045 #458E40
tetradic
#40458E #8E406C #8E8940 #408E62
square
#40458E #8E406C #8E8940 #408E62
split-complementary
#40458E #8E6240 #6C8E40
monochromatic
#1A1C3A #2D3164 #40458E #585EB4 #8286C7

Accessibility & contrast

On white

8.54
#40458E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#40458E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40458E
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40458E#FFFFFF#000000##FFFFFF
##40458E1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#17498C
Tritanopia (blue-blind)
#1C5563
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40458e;
/* rgb */ color: rgb(64, 69, 142);
/* oklch */ color: oklch(42.6% 0.119 277.1);
Tailwind
colors: {
  custom: {
    50: '#7b78af',
    500: '#40458e',
    950: '#000000',
  },
}
SCSS
$custom: #40458e;
$custom-light: #7b78af;
$custom-dark: #000000;
JSON
{
  "hex": "#40458e",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 142
  },
  "hsl": {
    "h": 236.154,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42568,
    "c": 0.1188,
    "h": 277.1
  },
  "luminance": 0.07299
}

Semantic roles & 50–950 ramp

primary
#40458E
secondary
#B1AD79
accent
#C65ACE
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #40458E

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

Preview Lab → · Contrast checker → · Palette generator →

#40458E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva