#4031AD#4031AD

#4031AD is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.6% C 0.187 H 280.0°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#4031AD
RGBrgb(64, 49, 173)
HSLhsl(247, 56%, 44%)
HSVhsv(247, 72%, 68%)
CMYKcmyk(63%, 71.7%, 0%, 32.2%)
CIE-LABlab(30.16, 42.84, -63.86)
CIE-LCHlch(30.16, 76.90, 303.86°)
OKLaboklab(41.64% 0.0324 -0.1842)
OKLCHoklch(41.64% 0.187 280)
XYZxyz(10.7531, 6.3029, 40.1770)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031AD #9EAD31
analogous
#3160AD #4031AD #7E31AD
triadic
#4031AD #AD4031 #31AD40
tetradic
#4031AD #AD3160 #9EAD31 #31AD7E
square
#4031AD #AD3160 #9EAD31 #31AD7E
split-complementary
#4031AD #AD7E31 #60AD31
monochromatic
#1D164E #2E237D #4031AD #5E4ECD #897EDA

Accessibility & contrast

On white

9.29
#4031AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4031AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031AD
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031AD#FFFFFF#000000##FFFFFF
##4031AD1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB1
Deuteranopia (green-blind)
#0042AB
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4031ad;
/* rgb */ color: rgb(64, 49, 173);
/* oklch */ color: oklch(41.6% 0.187 280.0);
Tailwind
colors: {
  custom: {
    50: '#826bc7',
    500: '#4031ad',
    950: '#000000',
  },
}
SCSS
$custom: #4031ad;
$custom-light: #826bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4031ad",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 247.258,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41644,
    "c": 0.18702,
    "h": 280
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#4031AD
secondary
#BAC377
accent
#DF49CD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4031AD

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

Preview Lab → · Contrast checker → · Palette generator →

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