#3958C8#3958C8

#3958C8 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.4% C 0.178 H 267.8°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#3958C8
RGBrgb(57, 88, 200)
HSLhsl(227, 57%, 50%)
HSVhsv(227, 72%, 78%)
CMYKcmyk(71.5%, 56%, 0%, 21.6%)
CIE-LABlab(41.24, 27.01, -61.67)
CIE-LCHlch(41.24, 67.32, 293.65°)
OKLaboklab(50.36% -0.007 -0.1777)
OKLCHoklch(50.36% 0.178 267.8)
XYZxyz(15.5988, 12.0178, 56.1300)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3958C8 #C8A939
analogous
#399FC8 #3958C8 #6139C8
triadic
#3958C8 #C83958 #58C839
tetradic
#3958C8 #C8399F #C8A939 #39C861
square
#3958C8 #C8399F #C8A939 #39C861
split-complementary
#3958C8 #C86139 #9FC839
monochromatic
#1D2E69 #2B4399 #3958C8 #6980D5 #99A9E3

Accessibility & contrast

On white

6.17
#3958C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#3958C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3958C8
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3958C8#FFFFFF#000000##FFFFFF
##3958C81.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3958c8;
/* rgb */ color: rgb(57, 88, 200);
/* oklch */ color: oklch(50.4% 0.178 267.8);
Tailwind
colors: {
  custom: {
    50: '#8286d9',
    500: '#3958c8',
    950: '#000000',
  },
}
SCSS
$custom: #3958c8;
$custom-light: #8286d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3958c8",
  "rgb": {
    "r": 57,
    "g": 88,
    "b": 200
  },
  "hsl": {
    "h": 226.993,
    "s": 56.522,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50359,
    "c": 0.17783,
    "h": 267.8
  },
  "luminance": 0.12019
}

Semantic roles & 50–950 ramp

primary
#3958C8
secondary
#CEC08F
accent
#BF48E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3958C8

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

Preview Lab → · Contrast checker → · Palette generator →

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