#4031C0#4031C0

#4031C0 is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.5% C 0.210 H 277.8°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#4031C0
RGBrgb(64, 49, 192)
HSLhsl(246, 59%, 47%)
HSVhsv(246, 74%, 75%)
CMYKcmyk(66.7%, 74.5%, 0%, 24.7%)
CIE-LABlab(32.01, 48.82, -72.09)
CIE-LCHlch(32.01, 87.07, 304.11°)
OKLaboklab(43.52% 0.0285 -0.2082)
OKLCHoklch(43.52% 0.21 277.8)
XYZxyz(12.7240, 7.0913, 50.5572)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031C0 #B1C031
analogous
#3169C0 #4031C0 #8831C0
triadic
#4031C0 #C04031 #31C040
tetradic
#4031C0 #C03169 #B1C031 #31C088
square
#4031C0 #C03169 #B1C031 #31C088
split-complementary
#4031C0 #C08831 #69C031
monochromatic
#1F185E #30258F #4031C0 #6659D5 #938AE1

Accessibility & contrast

On white

8.68
#4031C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4031C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031C0
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031C0#FFFFFF#000000##FFFFFF
##4031C01.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C4
Deuteranopia (green-blind)
#0045BD
Tritanopia (blue-blind)
#005A76
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4031c0;
/* rgb */ color: rgb(64, 49, 192);
/* oklch */ color: oklch(43.5% 0.210 277.8);
Tailwind
colors: {
  custom: {
    50: '#866cd4',
    500: '#4031c0',
    950: '#000000',
  },
}
SCSS
$custom: #4031c0;
$custom-light: #866cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4031c0",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 246.294,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.43515,
    "c": 0.21017,
    "h": 277.8
  },
  "luminance": 0.07092
}

Semantic roles & 50–950 ramp

primary
#4031C0
secondary
#C3CB82
accent
#E345D2
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4031C0

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

Preview Lab → · Contrast checker → · Palette generator →

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