#4036A8#4036A8

#4036A8 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.175 H 279.6°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#4036A8
RGBrgb(64, 54, 168)
HSLhsl(245, 51%, 44%)
HSVhsv(245, 68%, 66%)
CMYKcmyk(61.9%, 67.9%, 0%, 34.1%)
CIE-LABlab(30.77, 38.31, -59.86)
CIE-LCHlch(30.77, 71.07, 302.62°)
OKLaboklab(41.94% 0.0293 -0.1725)
OKLCHoklch(41.94% 0.175 279.6)
XYZxyz(10.4992, 6.5547, 37.7501)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4036A8 #9EA836
analogous
#3665A8 #4036A8 #7936A8
triadic
#4036A8 #A84036 #36A840
tetradic
#4036A8 #A83665 #9EA836 #36A879
square
#4036A8 #A83665 #9EA836 #36A879
split-complementary
#4036A8 #A87936 #65A836
monochromatic
#1D184B #2E277A #4036A8 #5E53C8 #8982D7

Accessibility & contrast

On white

9.09
#4036A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4036A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4036A8
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4036A8#FFFFFF#000000##FFFFFF
##4036A81.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#00546A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4036a8;
/* rgb */ color: rgb(64, 54, 168);
/* oklch */ color: oklch(41.9% 0.175 279.6);
Tailwind
colors: {
  custom: {
    50: '#816ec3',
    500: '#4036a8',
    950: '#000000',
  },
}
SCSS
$custom: #4036a8;
$custom-light: #816ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#4036a8",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 168
  },
  "hsl": {
    "h": 245.263,
    "s": 51.351,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4194,
    "c": 0.17497,
    "h": 279.6
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#4036A8
secondary
#BAC07A
accent
#DB4DCE
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #4036A8

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

Preview Lab → · Contrast checker → · Palette generator →

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