#4031C6#4031C6

#4031C6 is a dark, highly saturated blue. Relative luminance 0.074; OKLCH L 44.1% C 0.217 H 277.2°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#4031C6
RGBrgb(64, 49, 198)
HSLhsl(246, 60%, 48%)
HSVhsv(246, 75%, 78%)
CMYKcmyk(67.7%, 75.3%, 0%, 22.4%)
CIE-LABlab(32.62, 50.68, -74.61)
CIE-LCHlch(32.62, 90.20, 304.19°)
OKLaboklab(44.12% 0.0272 -0.2156)
OKLCHoklch(44.12% 0.217 277.2)
XYZxyz(13.4024, 7.3626, 54.1300)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031C6 #B7C631
analogous
#316CC6 #4031C6 #8A31C6
triadic
#4031C6 #C64031 #31C640
tetradic
#4031C6 #C6316C #B7C631 #31C68A
square
#4031C6 #C6316C #B7C631 #31C68A
split-complementary
#4031C6 #C68A31 #6CC631
monochromatic
#201964 #302595 #4031C6 #695DD7 #978EE3

Accessibility & contrast

On white

8.49
#4031C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4031C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4031C6#FFFFFF#000000##FFFFFF
##4031C61.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CA
Deuteranopia (green-blind)
#0046C3
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4031c6;
/* rgb */ color: rgb(64, 49, 198);
/* oklch */ color: oklch(44.1% 0.217 277.2);
Tailwind
colors: {
  custom: {
    50: '#876cd9',
    500: '#4031c6',
    950: '#000000',
  },
}
SCSS
$custom: #4031c6;
$custom-light: #876cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4031c6",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 246.04,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44122,
    "c": 0.2173,
    "h": 277.2
  },
  "luminance": 0.07364
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4031C6

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

Preview Lab → · Contrast checker → · Palette generator →

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