#4031C3#4031C3

#4031C3 is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.8% C 0.214 H 277.5°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#4031C3
RGBrgb(64, 49, 195)
HSLhsl(246, 60%, 48%)
HSVhsv(246, 75%, 76%)
CMYKcmyk(67.2%, 74.9%, 0%, 23.5%)
CIE-LABlab(32.32, 49.76, -73.35)
CIE-LCHlch(32.32, 88.64, 304.15°)
OKLaboklab(43.82% 0.0278 -0.2119)
OKLCHoklch(43.82% 0.214 277.5)
XYZxyz(13.0598, 7.2256, 52.3256)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031C3 #B4C331
analogous
#316BC3 #4031C3 #8931C3
triadic
#4031C3 #C34031 #31C340
tetradic
#4031C3 #C3316B #B4C331 #31C389
square
#4031C3 #C3316B #B4C331 #31C389
split-complementary
#4031C3 #C38931 #6BC331
monochromatic
#201861 #302592 #4031C3 #685BD6 #958CE2

Accessibility & contrast

On white

8.59
#4031C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4031C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4031C3#FFFFFF#000000##FFFFFF
##4031C31.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C7
Deuteranopia (green-blind)
#0046C0
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4031c3;
/* rgb */ color: rgb(64, 49, 195);
/* oklch */ color: oklch(43.8% 0.214 277.5);
Tailwind
colors: {
  custom: {
    50: '#876cd6',
    500: '#4031c3',
    950: '#000000',
  },
}
SCSS
$custom: #4031c3;
$custom-light: #876cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#4031c3",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 246.164,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.43818,
    "c": 0.21374,
    "h": 277.5
  },
  "luminance": 0.07227
}

Semantic roles & 50–950 ramp

primary
#4031C3
secondary
#C5CC83
accent
#E345D3
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4031C3

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

Preview Lab → · Contrast checker → · Palette generator →

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