#4031BA#4031BA

#4031BA is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.9% C 0.203 H 278.4°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#4031BA
RGBrgb(64, 49, 186)
HSLhsl(247, 58%, 46%)
HSVhsv(247, 74%, 73%)
CMYKcmyk(65.6%, 73.7%, 0%, 27.1%)
CIE-LABlab(31.42, 46.95, -69.53)
CIE-LCHlch(31.42, 83.90, 304.03°)
OKLaboklab(42.92% 0.0298 -0.2008)
OKLCHoklch(42.92% 0.203 278.4)
XYZxyz(12.0727, 6.8308, 47.1271)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031BA #ABBA31
analogous
#3166BA #4031BA #8431BA
triadic
#4031BA #BA4031 #31BA40
tetradic
#4031BA #BA3166 #ABBA31 #31BA84
square
#4031BA #BA3166 #ABBA31 #31BA84
split-complementary
#4031BA #BA8431 #66BA31
monochromatic
#1F1759 #2F248A #4031BA #6356D2 #9086DF

Accessibility & contrast

On white

8.87
#4031BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4031BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4031BA#FFFFFF#000000##FFFFFF
##4031BA1.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)
#004FBE
Deuteranopia (green-blind)
#0044B8
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4031ba;
/* rgb */ color: rgb(64, 49, 186);
/* oklch */ color: oklch(42.9% 0.203 278.4);
Tailwind
colors: {
  custom: {
    50: '#856bd0',
    500: '#4031ba',
    950: '#000000',
  },
}
SCSS
$custom: #4031ba;
$custom-light: #856bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#4031ba",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 246.569,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42915,
    "c": 0.20297,
    "h": 278.4
  },
  "luminance": 0.06832
}

Semantic roles & 50–950 ramp

primary
#4031BA
secondary
#C1C97E
accent
#E246D1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4031BA

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

Preview Lab → · Contrast checker → · Palette generator →

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