#40458F#40458F

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

Color values

HEX#40458F
RGBrgb(64, 69, 143)
HSLhsl(236, 38%, 41%)
HSVhsv(236, 55%, 56%)
CMYKcmyk(55.2%, 51.7%, 0%, 43.9%)
CIE-LABlab(32.54, 20.32, -41.82)
CIE-LCHlch(32.54, 46.49, 295.92°)
OKLaboklab(42.64% 0.0149 -0.1194)
OKLCHoklch(42.64% 0.12 277.1)
XYZxyz(9.1988, 7.3288, 26.9111)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40458F #8F8A40
analogous
#406C8F #40458F #63408F
triadic
#40458F #8F4045 #458F40
tetradic
#40458F #8F406C #8F8A40 #408F63
square
#40458F #8F406C #8F8A40 #408F63
split-complementary
#40458F #8F6340 #6C8F40
monochromatic
#1A1C3A #2D3165 #40458F #585EB4 #8287C7

Accessibility & contrast

On white

8.52
#40458F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#40458F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40458F
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40458F#FFFFFF#000000##FFFFFF
##40458F1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205092
Deuteranopia (green-blind)
#15498D
Tritanopia (blue-blind)
#1B5563
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40458f;
/* rgb */ color: rgb(64, 69, 143);
/* oklch */ color: oklch(42.6% 0.120 277.1);
Tailwind
colors: {
  custom: {
    50: '#7b78b0',
    500: '#40458f',
    950: '#000000',
  },
}
SCSS
$custom: #40458f;
$custom-light: #7b78b0;
$custom-dark: #000000;
JSON
{
  "hex": "#40458f",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 143
  },
  "hsl": {
    "h": 236.203,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4264,
    "c": 0.12029,
    "h": 277.1
  },
  "luminance": 0.07329
}

Semantic roles & 50–950 ramp

primary
#40458F
secondary
#B2AE79
accent
#C75ACE
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #40458F

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

Preview Lab → · Contrast checker → · Palette generator →

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