#4036AF#4036AF

#4036AF is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.6% C 0.184 H 278.9°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4036AF
RGBrgb(64, 54, 175)
HSLhsl(245, 53%, 45%)
HSVhsv(245, 69%, 69%)
CMYKcmyk(63.4%, 69.1%, 0%, 31.4%)
CIE-LABlab(31.40, 40.59, -63.03)
CIE-LCHlch(31.40, 74.97, 302.79°)
OKLaboklab(42.59% 0.0283 -0.1818)
OKLCHoklch(42.59% 0.184 278.9)
XYZxyz(11.1689, 6.8226, 41.2775)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4036AF #A5AF36
analogous
#3668AF #4036AF #7D36AF
triadic
#4036AF #AF4036 #36AF40
tetradic
#4036AF #AF3668 #A5AF36 #36AF7D
square
#4036AF #AF3668 #A5AF36 #36AF7D
split-complementary
#4036AF #AF7D36 #68AF36
monochromatic
#1E1951 #2F2880 #4036AF #6157CB #8D86DA

Accessibility & contrast

On white

8.88
#4036AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4036AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4036AF#FFFFFF#000000##FFFFFF
##4036AF1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4036af;
/* rgb */ color: rgb(64, 54, 175);
/* oklch */ color: oklch(42.6% 0.184 278.9);
Tailwind
colors: {
  custom: {
    50: '#826ec8',
    500: '#4036af',
    950: '#000000',
  },
}
SCSS
$custom: #4036af;
$custom-light: #826ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#4036af",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 175
  },
  "hsl": {
    "h": 244.959,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42586,
    "c": 0.18396,
    "h": 278.9
  },
  "luminance": 0.06823
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4036AF

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

Preview Lab → · Contrast checker → · Palette generator →

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