#3958A4#3958A4

#3958A4 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.7% C 0.128 H 265.2°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#3958A4
RGBrgb(57, 88, 164)
HSLhsl(223, 48%, 43%)
HSVhsv(223, 65%, 64%)
CMYKcmyk(65.2%, 46.3%, 0%, 35.7%)
CIE-LABlab(38.77, 13.87, -44.52)
CIE-LCHlch(38.77, 46.63, 287.30°)
OKLaboklab(47.7% -0.0107 -0.1272)
OKLCHoklch(47.7% 0.128 265.2)
XYZxyz(11.8756, 10.5285, 36.5211)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3958A4 #A48539
analogous
#398DA4 #3958A4 #4F39A4
triadic
#3958A4 #A43958 #58A439
tetradic
#3958A4 #A4398D #A48539 #39A44F
square
#3958A4 #A4398D #A48539 #39A44F
split-complementary
#3958A4 #A44F39 #8DA439
monochromatic
#192749 #294077 #3958A4 #5676C4 #839BD4

Accessibility & contrast

On white

6.76
#3958A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#3958A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3958A4
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3958A4#FFFFFF#000000##FFFFFF
##3958A41.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3360A7
Deuteranopia (green-blind)
#2057A2
Tritanopia (blue-blind)
#006976
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3958a4;
/* rgb */ color: rgb(57, 88, 164);
/* oklch */ color: oklch(47.7% 0.128 265.2);
Tailwind
colors: {
  custom: {
    50: '#7b86bf',
    500: '#3958a4',
    950: '#000000',
  },
}
SCSS
$custom: #3958a4;
$custom-light: #7b86bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3958a4",
  "rgb": {
    "r": 57,
    "g": 88,
    "b": 164
  },
  "hsl": {
    "h": 222.617,
    "s": 48.416,
    "l": 43.333
  },
  "oklch": {
    "l": 0.477,
    "c": 0.1277,
    "h": 265.2
  },
  "luminance": 0.1053
}

Semantic roles & 50–950 ramp

primary
#3958A4
secondary
#BEAA7B
accent
#B150D8
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3958A4

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

Preview Lab → · Contrast checker → · Palette generator →

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