#4036A2#4036A2

#4036A2 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.4% C 0.167 H 280.4°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#4036A2
RGBrgb(64, 54, 162)
HSLhsl(246, 50%, 42%)
HSVhsv(246, 67%, 64%)
CMYKcmyk(60.5%, 66.7%, 0%, 36.5%)
CIE-LABlab(30.25, 36.34, -57.11)
CIE-LCHlch(30.25, 67.69, 302.47°)
OKLaboklab(41.4% 0.0301 -0.1644)
OKLCHoklch(41.4% 0.167 280.4)
XYZxyz(9.9530, 6.3363, 34.8739)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4036A2 #98A236
analogous
#3662A2 #4036A2 #7636A2
triadic
#4036A2 #A24036 #36A240
tetradic
#4036A2 #A23662 #98A236 #36A276
square
#4036A2 #A23662 #98A236 #36A276
split-complementary
#4036A2 #A27636 #62A236
monochromatic
#1C1746 #2E2774 #4036A2 #5B50C5 #867ED4

Accessibility & contrast

On white

9.26
#4036A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4036A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4036A2
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4036A2#FFFFFF#000000##FFFFFF
##4036A21.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4036a2;
/* rgb */ color: rgb(64, 54, 162);
/* oklch */ color: oklch(41.4% 0.167 280.4);
Tailwind
colors: {
  custom: {
    50: '#806ebe',
    500: '#4036a2',
    950: '#000000',
  },
}
SCSS
$custom: #4036a2;
$custom-light: #806ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#4036a2",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 245.556,
    "s": 50,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41398,
    "c": 0.16715,
    "h": 280.4
  },
  "luminance": 0.06337
}

Semantic roles & 50–950 ramp

primary
#4036A2
secondary
#B7BD77
accent
#DA4ECD
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #4036A2

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

Preview Lab → · Contrast checker → · Palette generator →

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