#4031C2#4031C2

#4031C2 is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.7% C 0.213 H 277.6°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#4031C2
RGBrgb(64, 49, 194)
HSLhsl(246, 60%, 48%)
HSVhsv(246, 75%, 76%)
CMYKcmyk(67%, 74.7%, 0%, 23.9%)
CIE-LABlab(32.21, 49.45, -72.93)
CIE-LCHlch(32.21, 88.11, 304.14°)
OKLaboklab(43.72% 0.0281 -0.2107)
OKLCHoklch(43.72% 0.213 277.6)
XYZxyz(12.9471, 7.1805, 51.7322)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031C2 #B3C231
analogous
#316AC2 #4031C2 #8931C2
triadic
#4031C2 #C24031 #31C240
tetradic
#4031C2 #C2316A #B3C231 #31C289
square
#4031C2 #C2316A #B3C231 #31C289
split-complementary
#4031C2 #C28931 #6AC231
monochromatic
#201860 #302591 #4031C2 #675BD6 #948CE2

Accessibility & contrast

On white

8.62
#4031C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4031C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031C2
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031C2#FFFFFF#000000##FFFFFF
##4031C21.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C6
Deuteranopia (green-blind)
#0046BF
Tritanopia (blue-blind)
#005B77
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4031c2;
/* rgb */ color: rgb(64, 49, 194);
/* oklch */ color: oklch(43.7% 0.213 277.6);
Tailwind
colors: {
  custom: {
    50: '#866cd6',
    500: '#4031c2',
    950: '#000000',
  },
}
SCSS
$custom: #4031c2;
$custom-light: #866cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#4031c2",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 246.207,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.43717,
    "c": 0.21256,
    "h": 277.6
  },
  "luminance": 0.07182
}

Semantic roles & 50–950 ramp

primary
#4031C2
secondary
#C4CC83
accent
#E345D3
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4031C2

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

Preview Lab → · Contrast checker → · Palette generator →

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