#4031AE#4031AE

#4031AE is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.7% C 0.188 H 279.8°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#4031AE
RGBrgb(64, 49, 174)
HSLhsl(247, 56%, 44%)
HSVhsv(247, 72%, 68%)
CMYKcmyk(63.2%, 71.8%, 0%, 31.8%)
CIE-LABlab(30.26, 43.16, -64.30)
CIE-LCHlch(30.26, 77.44, 303.87°)
OKLaboklab(41.74% 0.0322 -0.1855)
OKLCHoklch(41.74% 0.188 279.8)
XYZxyz(10.8502, 6.3418, 40.6885)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031AE #9FAE31
analogous
#3160AE #4031AE #7E31AE
triadic
#4031AE #AE4031 #31AE40
tetradic
#4031AE #AE3160 #9FAE31 #31AE7E
square
#4031AE #AE3160 #9FAE31 #31AE7E
split-complementary
#4031AE #AE7E31 #60AE31
monochromatic
#1D164E #2E247E #4031AE #5E4FCD #8A7FDB

Accessibility & contrast

On white

9.26
#4031AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4031AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031AE
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031AE#FFFFFF#000000##FFFFFF
##4031AE1.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)
#004CB2
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4031ae;
/* rgb */ color: rgb(64, 49, 174);
/* oklch */ color: oklch(41.7% 0.188 279.8);
Tailwind
colors: {
  custom: {
    50: '#826bc7',
    500: '#4031ae',
    950: '#000000',
  },
}
SCSS
$custom: #4031ae;
$custom-light: #826bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4031ae",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 247.2,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41741,
    "c": 0.18826,
    "h": 279.8
  },
  "luminance": 0.06343
}

Semantic roles & 50–950 ramp

primary
#4031AE
secondary
#BBC477
accent
#DF48CD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4031AE

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

Preview Lab → · Contrast checker → · Palette generator →

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