#4036AD#4036AD

#4036AD is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.4% C 0.181 H 279.1°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4036AD
RGBrgb(64, 54, 173)
HSLhsl(245, 52%, 45%)
HSVhsv(245, 69%, 68%)
CMYKcmyk(63%, 68.8%, 0%, 32.2%)
CIE-LABlab(31.22, 39.94, -62.13)
CIE-LCHlch(31.22, 73.86, 302.74°)
OKLaboklab(42.4% 0.0286 -0.1791)
OKLCHoklch(42.4% 0.181 279.1)
XYZxyz(10.9739, 6.7446, 40.2506)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4036AD #A3AD36
analogous
#3668AD #4036AD #7C36AD
triadic
#4036AD #AD4036 #36AD40
tetradic
#4036AD #AD3668 #A3AD36 #36AD7C
square
#4036AD #AD3668 #A3AD36 #36AD7C
split-complementary
#4036AD #AD7C36 #68AD36
monochromatic
#1D1950 #2F277E #4036AD #6056CA #8C85D9

Accessibility & contrast

On white

8.94
#4036AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4036AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4036AD
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4036AD#FFFFFF#000000##FFFFFF
##4036AD1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0045AB
Tritanopia (blue-blind)
#00566D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4036ad;
/* rgb */ color: rgb(64, 54, 173);
/* oklch */ color: oklch(42.4% 0.181 279.1);
Tailwind
colors: {
  custom: {
    50: '#826ec6',
    500: '#4036ad',
    950: '#000000',
  },
}
SCSS
$custom: #4036ad;
$custom-light: #826ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#4036ad",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 173
  },
  "hsl": {
    "h": 245.042,
    "s": 52.423,
    "l": 44.51
  },
  "oklch": {
    "l": 0.424,
    "c": 0.18141,
    "h": 279.1
  },
  "luminance": 0.06745
}

Semantic roles & 50–950 ramp

primary
#4036AD
secondary
#BDC27C
accent
#DC4CD0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4036AD

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

Preview Lab → · Contrast checker → · Palette generator →

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