#4031C1#4031C1

#4031C1 is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.6% C 0.211 H 277.7°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#4031C1
RGBrgb(64, 49, 193)
HSLhsl(246, 60%, 47%)
HSVhsv(246, 75%, 76%)
CMYKcmyk(66.8%, 74.6%, 0%, 24.3%)
CIE-LABlab(32.11, 49.13, -72.51)
CIE-LCHlch(32.11, 87.59, 304.12°)
OKLaboklab(43.62% 0.0283 -0.2095)
OKLCHoklch(43.62% 0.211 277.7)
XYZxyz(12.8352, 7.1358, 51.1427)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031C1 #B2C131
analogous
#316AC1 #4031C1 #8831C1
triadic
#4031C1 #C14031 #31C140
tetradic
#4031C1 #C1316A #B2C131 #31C188
square
#4031C1 #C1316A #B2C131 #31C188
split-complementary
#4031C1 #C18831 #6AC131
monochromatic
#20185F #302590 #4031C1 #675AD5 #948BE2

Accessibility & contrast

On white

8.65
#4031C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4031C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031C1
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031C1#FFFFFF#000000##FFFFFF
##4031C11.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C5
Deuteranopia (green-blind)
#0045BE
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4031c1;
/* rgb */ color: rgb(64, 49, 193);
/* oklch */ color: oklch(43.6% 0.211 277.7);
Tailwind
colors: {
  custom: {
    50: '#866cd5',
    500: '#4031c1',
    950: '#000000',
  },
}
SCSS
$custom: #4031c1;
$custom-light: #866cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#4031c1",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 246.25,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.43616,
    "c": 0.21137,
    "h": 277.7
  },
  "luminance": 0.07137
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4031C1

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

Preview Lab → · Contrast checker → · Palette generator →

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