#4036AA#4036AA

#4036AA is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.1% C 0.178 H 279.4°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#4036AA
RGBrgb(64, 54, 170)
HSLhsl(245, 52%, 44%)
HSVhsv(245, 68%, 67%)
CMYKcmyk(62.4%, 68.2%, 0%, 33.3%)
CIE-LABlab(30.95, 38.96, -60.77)
CIE-LCHlch(30.95, 72.19, 302.66°)
OKLaboklab(42.12% 0.029 -0.1752)
OKLCHoklch(42.12% 0.178 279.4)
XYZxyz(10.6869, 6.6298, 38.7389)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4036AA #A0AA36
analogous
#3666AA #4036AA #7A36AA
triadic
#4036AA #AA4036 #36AA40
tetradic
#4036AA #AA3666 #A0AA36 #36AA7A
square
#4036AA #AA3666 #A0AA36 #36AA7A
split-complementary
#4036AA #AA7A36 #66AA36
monochromatic
#1D184D #2F277C #4036AA #5E54C9 #8A83D8

Accessibility & contrast

On white

9.03
#4036AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##4036AA#FFFFFF#000000##FFFFFF
##4036AA1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4036aa;
/* rgb */ color: rgb(64, 54, 170);
/* oklch */ color: oklch(42.1% 0.178 279.4);
Tailwind
colors: {
  custom: {
    50: '#816ec4',
    500: '#4036aa',
    950: '#000000',
  },
}
SCSS
$custom: #4036aa;
$custom-light: #816ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#4036aa",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 170
  },
  "hsl": {
    "h": 245.172,
    "s": 51.786,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42123,
    "c": 0.17756,
    "h": 279.4
  },
  "luminance": 0.06631
}

Semantic roles & 50–950 ramp

primary
#4036AA
secondary
#BBC17B
accent
#DB4DCF
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4036AA

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

Preview Lab → · Contrast checker → · Palette generator →

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