#4031AC#4031AC

#4031AC is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.5% C 0.186 H 280.1°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4031AC
RGBrgb(64, 49, 172)
HSLhsl(247, 56%, 43%)
HSVhsv(247, 72%, 67%)
CMYKcmyk(62.8%, 71.5%, 0%, 32.5%)
CIE-LABlab(30.07, 42.52, -63.41)
CIE-LCHlch(30.07, 76.35, 303.84°)
OKLaboklab(41.55% 0.0326 -0.1829)
OKLCHoklch(41.55% 0.186 280.1)
XYZxyz(10.6567, 6.2644, 39.6693)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031AC #9DAC31
analogous
#315FAC #4031AC #7D31AC
triadic
#4031AC #AC4031 #31AC40
tetradic
#4031AC #AC315F #9DAC31 #31AC7D
square
#4031AC #AC315F #9DAC31 #31AC7D
split-complementary
#4031AC #AC7D31 #5FAC31
monochromatic
#1D164D #2E237C #4031AC #5D4ECC #897DDA

Accessibility & contrast

On white

9.32
#4031AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4031AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4031AC#FFFFFF#000000##FFFFFF
##4031AC1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4031ac;
/* rgb */ color: rgb(64, 49, 172);
/* oklch */ color: oklch(41.5% 0.186 280.1);
Tailwind
colors: {
  custom: {
    50: '#826bc6',
    500: '#4031ac',
    950: '#000000',
  },
}
SCSS
$custom: #4031ac;
$custom-light: #826bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4031ac",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 247.317,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41548,
    "c": 0.18577,
    "h": 280.1
  },
  "luminance": 0.06265
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4031AC

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

Preview Lab → · Contrast checker → · Palette generator →

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