#4036A5#4036A5

#4036A5 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.7% C 0.171 H 280.0°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#4036A5
RGBrgb(64, 54, 165)
HSLhsl(245, 51%, 43%)
HSVhsv(245, 67%, 65%)
CMYKcmyk(61.2%, 67.3%, 0%, 35.3%)
CIE-LABlab(30.51, 37.32, -58.49)
CIE-LCHlch(30.51, 69.38, 302.54°)
OKLaboklab(41.67% 0.0297 -0.1685)
OKLCHoklch(41.67% 0.171 280)
XYZxyz(10.2229, 6.4442, 36.2952)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4036A5 #9BA536
analogous
#3664A5 #4036A5 #7736A5
triadic
#4036A5 #A54036 #36A540
tetradic
#4036A5 #A53664 #9BA536 #36A577
square
#4036A5 #A53664 #9BA536 #36A577
split-complementary
#4036A5 #A57736 #64A536
monochromatic
#1C1849 #2E2777 #4036A5 #5C52C6 #8880D5

Accessibility & contrast

On white

9.17
#4036A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4036A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4036A5
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4036A5#FFFFFF#000000##FFFFFF
##4036A51.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4036a5;
/* rgb */ color: rgb(64, 54, 165);
/* oklch */ color: oklch(41.7% 0.171 280.0);
Tailwind
colors: {
  custom: {
    50: '#806ec1',
    500: '#4036a5',
    950: '#000000',
  },
}
SCSS
$custom: #4036a5;
$custom-light: #806ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#4036a5",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 165
  },
  "hsl": {
    "h": 245.405,
    "s": 50.685,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41667,
    "c": 0.17108,
    "h": 280
  },
  "luminance": 0.06445
}

Semantic roles & 50–950 ramp

primary
#4036A5
secondary
#B8BF78
accent
#DA4ECE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #4036A5

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

Preview Lab → · Contrast checker → · Palette generator →

#4036A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva