#4037AD#4037AD

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

Color values

HEX#4037AD
RGBrgb(64, 55, 173)
HSLhsl(245, 52%, 45%)
HSVhsv(245, 68%, 68%)
CMYKcmyk(63%, 68.2%, 0%, 32.2%)
CIE-LABlab(31.44, 39.35, -61.77)
CIE-LCHlch(31.44, 73.24, 302.50°)
OKLaboklab(42.56% 0.0278 -0.1781)
OKLCHoklch(42.56% 0.18 278.9)
XYZxyz(11.0210, 6.8386, 40.2663)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037AD #A4AD37
analogous
#3769AD #4037AD #7B37AD
triadic
#4037AD #AD4037 #37AD40
tetradic
#4037AD #AD3769 #A4AD37 #37AD7B
square
#4037AD #AD3769 #A4AD37 #37AD7B
split-complementary
#4037AD #AD7B37 #69AD37
monochromatic
#1E1950 #2F287F #4037AD #6057CA #8C86D8

Accessibility & contrast

On white

8.87
#4037AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4037AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037AD
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037AD#FFFFFF#000000##FFFFFF
##4037AD1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB1
Deuteranopia (green-blind)
#0045AB
Tritanopia (blue-blind)
#00566D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4037ad;
/* rgb */ color: rgb(64, 55, 173);
/* oklch */ color: oklch(42.6% 0.180 278.9);
Tailwind
colors: {
  custom: {
    50: '#826fc6',
    500: '#4037ad',
    950: '#000000',
  },
}
SCSS
$custom: #4037ad;
$custom-light: #826fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4037ad",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 173
  },
  "hsl": {
    "h": 244.576,
    "s": 51.754,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42557,
    "c": 0.18025,
    "h": 278.9
  },
  "luminance": 0.06839
}

Semantic roles & 50–950 ramp

primary
#4037AD
secondary
#BDC27D
accent
#DB4DD0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4037AD

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

Preview Lab → · Contrast checker → · Palette generator →

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