#3951C2#3951C2

#3951C2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.5% C 0.178 H 269.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#3951C2
RGBrgb(57, 81, 194)
HSLhsl(229, 55%, 49%)
HSVhsv(229, 71%, 76%)
CMYKcmyk(70.6%, 58.2%, 0%, 23.9%)
CIE-LABlab(38.98, 29.34, -61.86)
CIE-LCHlch(38.98, 68.47, 295.37°)
OKLaboklab(48.52% -0.0017 -0.1784)
OKLCHoklch(48.52% 0.178 269.4)
XYZxyz(14.3640, 10.6483, 52.3268)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951C2 #C2AA39
analogous
#3996C2 #3951C2 #6639C2
triadic
#3951C2 #C23951 #51C239
tetradic
#3951C2 #C23996 #C2AA39 #39C266
square
#3951C2 #C23996 #C2AA39 #39C266
split-complementary
#3951C2 #C26639 #96C239
monochromatic
#1D2A63 #2B3D93 #3951C2 #6679D2 #95A2E0

Accessibility & contrast

On white

6.71
#3951C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#3951C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3951C2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3951C2#FFFFFF#000000##FFFFFF
##3951C21.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3951c2;
/* rgb */ color: rgb(57, 81, 194);
/* oklch */ color: oklch(48.5% 0.178 269.4);
Tailwind
colors: {
  custom: {
    50: '#8181d5',
    500: '#3951c2',
    950: '#000000',
  },
}
SCSS
$custom: #3951c2;
$custom-light: #8181d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3951c2",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 229.489,
    "s": 54.582,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48523,
    "c": 0.17837,
    "h": 269.4
  },
  "luminance": 0.1065
}

Semantic roles & 50–950 ramp

primary
#3951C2
secondary
#CBC08B
accent
#C44ADE
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3951C2

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

Preview Lab → · Contrast checker → · Palette generator →

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