#4036AB#4036AB

#4036AB is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.2% C 0.179 H 279.3°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#4036AB
RGBrgb(64, 54, 171)
HSLhsl(245, 52%, 44%)
HSVhsv(245, 68%, 67%)
CMYKcmyk(62.6%, 68.4%, 0%, 32.9%)
CIE-LABlab(31.04, 39.29, -61.22)
CIE-LCHlch(31.04, 72.75, 302.69°)
OKLaboklab(42.22% 0.0289 -0.1765)
OKLCHoklch(42.22% 0.179 279.3)
XYZxyz(10.7819, 6.6678, 39.2390)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4036AB #A1AB36
analogous
#3667AB #4036AB #7B36AB
triadic
#4036AB #AB4036 #36AB40
tetradic
#4036AB #AB3667 #A1AB36 #36AB7B
square
#4036AB #AB3667 #A1AB36 #36AB7B
split-complementary
#4036AB #AB7B36 #67AB36
monochromatic
#1D194E #2F277C #4036AB #5F55C9 #8B83D8

Accessibility & contrast

On white

9.00
#4036AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4036AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4036AB
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4036AB#FFFFFF#000000##FFFFFF
##4036AB1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#00556C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4036ab;
/* rgb */ color: rgb(64, 54, 171);
/* oklch */ color: oklch(42.2% 0.179 279.3);
Tailwind
colors: {
  custom: {
    50: '#816ec5',
    500: '#4036ab',
    950: '#000000',
  },
}
SCSS
$custom: #4036ab;
$custom-light: #816ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#4036ab",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 245.128,
    "s": 52,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42215,
    "c": 0.17884,
    "h": 279.3
  },
  "luminance": 0.06669
}

Semantic roles & 50–950 ramp

primary
#4036AB
secondary
#BCC27B
accent
#DB4CCF
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4036AB

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

Preview Lab → · Contrast checker → · Palette generator →

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