#4031C5#4031C5

#4031C5 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.0% C 0.216 H 277.3°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#4031C5
RGBrgb(64, 49, 197)
HSLhsl(246, 60%, 48%)
HSVhsv(246, 75%, 77%)
CMYKcmyk(67.5%, 75.1%, 0%, 22.7%)
CIE-LABlab(32.52, 50.37, -74.19)
CIE-LCHlch(32.52, 89.68, 304.17°)
OKLaboklab(44.02% 0.0274 -0.2144)
OKLCHoklch(44.02% 0.216 277.3)
XYZxyz(13.2874, 7.3167, 53.5245)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031C5 #B6C531
analogous
#316CC5 #4031C5 #8A31C5
triadic
#4031C5 #C54031 #31C540
tetradic
#4031C5 #C5316C #B6C531 #31C58A
square
#4031C5 #C5316C #B6C531 #31C58A
split-complementary
#4031C5 #C58A31 #6CC531
monochromatic
#201963 #302594 #4031C5 #695DD7 #968EE3

Accessibility & contrast

On white

8.52
#4031C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4031C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4031C5#FFFFFF#000000##FFFFFF
##4031C51.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C9
Deuteranopia (green-blind)
#0046C2
Tritanopia (blue-blind)
#005C79
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4031c5;
/* rgb */ color: rgb(64, 49, 197);
/* oklch */ color: oklch(44.0% 0.216 277.3);
Tailwind
colors: {
  custom: {
    50: '#876cd8',
    500: '#4031c5',
    950: '#000000',
  },
}
SCSS
$custom: #4031c5;
$custom-light: #876cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4031c5",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 246.081,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4402,
    "c": 0.21611,
    "h": 277.3
  },
  "luminance": 0.07318
}

Semantic roles & 50–950 ramp

primary
#4031C5
secondary
#C6CD85
accent
#E344D3
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4031C5

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

Preview Lab → · Contrast checker → · Palette generator →

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