#4031AA#4031AA

#4031AA is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.4% C 0.183 H 280.4°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#4031AA
RGBrgb(64, 49, 170)
HSLhsl(247, 55%, 43%)
HSVhsv(247, 71%, 67%)
CMYKcmyk(62.4%, 71.2%, 0%, 33.3%)
CIE-LABlab(29.88, 41.89, -62.52)
CIE-LCHlch(29.88, 75.26, 303.82°)
OKLaboklab(41.36% 0.033 -0.1803)
OKLCHoklch(41.36% 0.183 280.4)
XYZxyz(10.4661, 6.1881, 38.6653)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031AA #9BAA31
analogous
#315EAA #4031AA #7C31AA
triadic
#4031AA #AA4031 #31AA40
tetradic
#4031AA #AA315E #9BAA31 #31AA7C
square
#4031AA #AA315E #9BAA31 #31AA7C
split-complementary
#4031AA #AA7C31 #5EAA31
monochromatic
#1C164B #2E237A #4031AA #5C4DCC #887CD9

Accessibility & contrast

On white

9.38
#4031AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4031AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4031AA#FFFFFF#000000##FFFFFF
##4031AA1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0042A8
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4031aa;
/* rgb */ color: rgb(64, 49, 170);
/* oklch */ color: oklch(41.4% 0.183 280.4);
Tailwind
colors: {
  custom: {
    50: '#826bc4',
    500: '#4031aa',
    950: '#000000',
  },
}
SCSS
$custom: #4031aa;
$custom-light: #826bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4031aa",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 247.438,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41357,
    "c": 0.18327,
    "h": 280.4
  },
  "luminance": 0.06189
}

Semantic roles & 50–950 ramp

primary
#4031AA
secondary
#B8C275
accent
#DF49CC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4031AA

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

Preview Lab → · Contrast checker → · Palette generator →

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