#3958C7#3958C7

#3958C7 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.3% C 0.176 H 267.7°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#3958C7
RGBrgb(57, 88, 199)
HSLhsl(227, 56%, 50%)
HSVhsv(227, 71%, 78%)
CMYKcmyk(71.4%, 55.8%, 0%, 22%)
CIE-LABlab(41.17, 26.64, -61.21)
CIE-LCHlch(41.17, 66.76, 293.52°)
OKLaboklab(50.28% -0.007 -0.1763)
OKLCHoklch(50.28% 0.176 267.7)
XYZxyz(15.4823, 11.9712, 55.5165)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3958C7 #C7A839
analogous
#399FC7 #3958C7 #6139C7
triadic
#3958C7 #C73958 #58C739
tetradic
#3958C7 #C7399F #C7A839 #39C761
square
#3958C7 #C7399F #C7A839 #39C761
split-complementary
#3958C7 #C76139 #9FC739
monochromatic
#1D2E68 #2B4398 #3958C7 #6980D4 #98A8E2

Accessibility & contrast

On white

6.19
#3958C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#3958C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3958C7
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3958C7#FFFFFF#000000##FFFFFF
##3958C71.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3958c7;
/* rgb */ color: rgb(57, 88, 199);
/* oklch */ color: oklch(50.3% 0.176 267.7);
Tailwind
colors: {
  custom: {
    50: '#8286d9',
    500: '#3958c7',
    950: '#000000',
  },
}
SCSS
$custom: #3958c7;
$custom-light: #8286d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3958c7",
  "rgb": {
    "r": 57,
    "g": 88,
    "b": 199
  },
  "hsl": {
    "h": 226.901,
    "s": 55.906,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5028,
    "c": 0.17648,
    "h": 267.7
  },
  "luminance": 0.11973
}

Semantic roles & 50–950 ramp

primary
#3958C7
secondary
#CEC08E
accent
#BE49DF
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3958C7

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

Preview Lab → · Contrast checker → · Palette generator →

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