#3951CB#3951CB

#3951CB is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.3% C 0.190 H 269.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#3951CB
RGBrgb(57, 81, 203)
HSLhsl(230, 58%, 51%)
HSVhsv(230, 72%, 80%)
CMYKcmyk(71.9%, 60.1%, 0%, 20.4%)
CIE-LABlab(39.69, 32.57, -65.93)
CIE-LCHlch(39.69, 73.54, 296.29°)
OKLaboklab(49.27% -0.0017 -0.1903)
OKLCHoklch(49.27% 0.19 269.5)
XYZxyz(15.4056, 11.0649, 57.8122)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951CB #CBB339
analogous
#399ACB #3951CB #6A39CB
triadic
#3951CB #CB3951 #51CB39
tetradic
#3951CB #CB399A #CBB339 #39CB6A
square
#3951CB #CB399A #CBB339 #39CB6A
split-complementary
#3951CB #CB6A39 #9ACB39
monochromatic
#1D2A6D #293C9D #3951CB #697CD8 #9AA6E4

Accessibility & contrast

On white

6.54
#3951CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#3951CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3951CB
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3951CB#FFFFFF#000000##FFFFFF
##3951CB1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0057C9
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3951cb;
/* rgb */ color: rgb(57, 81, 203);
/* oklch */ color: oklch(49.3% 0.190 269.5);
Tailwind
colors: {
  custom: {
    50: '#8381dc',
    500: '#3951cb',
    950: '#000000',
  },
}
SCSS
$custom: #3951cb;
$custom-light: #8381dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3951cb",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 230.137,
    "s": 58.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49271,
    "c": 0.19033,
    "h": 269.5
  },
  "luminance": 0.11067
}

Semantic roles & 50–950 ramp

primary
#3951CB
secondary
#D0C690
accent
#C846E2
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3951CB

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

Preview Lab → · Contrast checker → · Palette generator →

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