#40368D#40368D

#40368D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.139 H 283.3°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#40368D
RGBrgb(64, 54, 141)
HSLhsl(247, 45%, 38%)
HSVhsv(247, 62%, 55%)
CMYKcmyk(54.6%, 61.7%, 0%, 44.7%)
CIE-LABlab(28.51, 29.42, -47.09)
CIE-LCHlch(28.51, 55.53, 301.99°)
OKLaboklab(39.59% 0.0318 -0.135)
OKLCHoklch(39.59% 0.139 283.3)
XYZxyz(8.2398, 5.6509, 25.8507)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40368D #838D36
analogous
#36578D #40368D #6B368D
triadic
#40368D #8D4036 #368D40
tetradic
#40368D #8D3657 #838D36 #368D6B
square
#40368D #8D3657 #838D36 #368D6B
split-complementary
#40368D #8D6B36 #578D36
monochromatic
#181434 #2C2561 #40368D #5447B9 #7E74CA

Accessibility & contrast

On white

9.86
#40368D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#40368D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40368D
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40368D#FFFFFF#000000##FFFFFF
##40368D1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#1F4B5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40368d;
/* rgb */ color: rgb(64, 54, 141);
/* oklch */ color: oklch(39.6% 0.139 283.3);
Tailwind
colors: {
  custom: {
    50: '#7c6daf',
    500: '#40368d',
    950: '#000000',
  },
}
SCSS
$custom: #40368d;
$custom-light: #7c6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#40368d",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 141
  },
  "hsl": {
    "h": 246.897,
    "s": 44.615,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39594,
    "c": 0.1387,
    "h": 283.3
  },
  "luminance": 0.05651
}

Semantic roles & 50–950 ramp

primary
#40368D
secondary
#AAB26D
accent
#D453C6
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #40368D

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

Preview Lab → · Contrast checker → · Palette generator →

#40368D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva