#40359B#40359B

#40359B is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.159 H 281.5°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#40359B
RGBrgb(64, 53, 155)
HSLhsl(246, 49%, 41%)
HSVhsv(246, 66%, 61%)
CMYKcmyk(58.7%, 65.8%, 0%, 39.2%)
CIE-LABlab(29.42, 34.65, -54.21)
CIE-LCHlch(29.42, 64.34, 302.59°)
OKLaboklab(40.61% 0.0318 -0.1559)
OKLCHoklch(40.61% 0.159 281.5)
XYZxyz(9.3020, 6.0021, 31.6724)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40359B #909B35
analogous
#355D9B #40359B #73359B
triadic
#40359B #9B4035 #359B40
tetradic
#40359B #9B355D #909B35 #359B73
square
#40359B #9B355D #909B35 #359B73
split-complementary
#40359B #9B7335 #5D9B35
monochromatic
#1A1640 #2D256D #40359B #584CC2 #8379D1

Accessibility & contrast

On white

9.54
#40359B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#40359B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40359B
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40359B#FFFFFF#000000##FFFFFF
##40359B1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#0A4F63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #40359b;
/* rgb */ color: rgb(64, 53, 155);
/* oklch */ color: oklch(40.6% 0.159 281.5);
Tailwind
colors: {
  custom: {
    50: '#7f6db9',
    500: '#40359b',
    950: '#000000',
  },
}
SCSS
$custom: #40359b;
$custom-light: #7f6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#40359b",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 155
  },
  "hsl": {
    "h": 246.471,
    "s": 49.038,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40611,
    "c": 0.15912,
    "h": 281.5
  },
  "luminance": 0.06003
}

Semantic roles & 50–950 ramp

primary
#40359B
secondary
#B2BA72
accent
#D94FCA
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #40359B

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

Preview Lab → · Contrast checker → · Palette generator →

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