#4037AE#4037AE

#4037AE is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.182 H 278.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#4037AE
RGBrgb(64, 55, 174)
HSLhsl(245, 52%, 45%)
HSVhsv(245, 68%, 68%)
CMYKcmyk(63.2%, 68.4%, 0%, 31.8%)
CIE-LABlab(31.53, 39.68, -62.22)
CIE-LCHlch(31.53, 73.79, 302.52°)
OKLaboklab(42.65% 0.0277 -0.1794)
OKLCHoklch(42.65% 0.182 278.8)
XYZxyz(11.1181, 6.8775, 40.7778)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037AE #A5AE37
analogous
#3769AE #4037AE #7C37AE
triadic
#4037AE #AE4037 #37AE40
tetradic
#4037AE #AE3769 #A5AE37 #37AE7C
square
#4037AE #AE3769 #A5AE37 #37AE7C
split-complementary
#4037AE #AE7C37 #69AE37
monochromatic
#1E1A51 #2F287F #4037AE #6158CA #8D86D9

Accessibility & contrast

On white

8.84
#4037AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4037AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037AE
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037AE#FFFFFF#000000##FFFFFF
##4037AE1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4037ae;
/* rgb */ color: rgb(64, 55, 174);
/* oklch */ color: oklch(42.6% 0.182 278.8);
Tailwind
colors: {
  custom: {
    50: '#826fc7',
    500: '#4037ae',
    950: '#000000',
  },
}
SCSS
$custom: #4037ae;
$custom-light: #826fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4037ae",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 174
  },
  "hsl": {
    "h": 244.538,
    "s": 51.965,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42649,
    "c": 0.18153,
    "h": 278.8
  },
  "luminance": 0.06878
}

Semantic roles & 50–950 ramp

primary
#4037AE
secondary
#BEC37E
accent
#DB4CD1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4037AE

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

Preview Lab → · Contrast checker → · Palette generator →

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