#3958C4#3958C4

#3958C4 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.0% C 0.172 H 267.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#3958C4
RGBrgb(57, 88, 196)
HSLhsl(227, 55%, 50%)
HSVhsv(227, 71%, 77%)
CMYKcmyk(70.9%, 55.1%, 0%, 23.1%)
CIE-LABlab(40.95, 25.55, -59.83)
CIE-LCHlch(40.95, 65.05, 293.13°)
OKLaboklab(50.04% -0.0072 -0.1723)
OKLCHoklch(50.04% 0.172 267.6)
XYZxyz(15.1374, 11.8333, 53.7001)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3958C4 #C4A539
analogous
#399DC4 #3958C4 #6039C4
triadic
#3958C4 #C43958 #58C439
tetradic
#3958C4 #C4399D #C4A539 #39C460
square
#3958C4 #C4399D #C4A539 #39C460
split-complementary
#3958C4 #C46039 #9DC439
monochromatic
#1D2D65 #2B4395 #3958C4 #677FD3 #97A7E1

Accessibility & contrast

On white

6.24
#3958C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#3958C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3958C4
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3958C4#FFFFFF#000000##FFFFFF
##3958C41.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C8
Deuteranopia (green-blind)
#005AC2
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3958c4;
/* rgb */ color: rgb(57, 88, 196);
/* oklch */ color: oklch(50.0% 0.172 267.6);
Tailwind
colors: {
  custom: {
    50: '#8186d7',
    500: '#3958c4',
    950: '#000000',
  },
}
SCSS
$custom: #3958c4;
$custom-light: #8186d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3958c4",
  "rgb": {
    "r": 57,
    "g": 88,
    "b": 196
  },
  "hsl": {
    "h": 226.619,
    "s": 54.941,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50045,
    "c": 0.17243,
    "h": 267.6
  },
  "luminance": 0.11835
}

Semantic roles & 50–950 ramp

primary
#3958C4
secondary
#CCBE8D
accent
#BD4ADE
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3958C4

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

Preview Lab → · Contrast checker → · Palette generator →

#3958C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva