#3958B4#3958B4

#3958B4 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.8% C 0.150 H 266.8°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#3958B4
RGBrgb(57, 88, 180)
HSLhsl(225, 52%, 46%)
HSVhsv(225, 68%, 71%)
CMYKcmyk(68.3%, 51.1%, 0%, 29.4%)
CIE-LABlab(39.82, 19.70, -52.31)
CIE-LCHlch(39.82, 55.90, 290.64°)
OKLaboklab(48.83% -0.0085 -0.1502)
OKLCHoklch(48.83% 0.15 266.8)
XYZxyz(13.4124, 11.1433, 44.6152)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3958B4 #B49539
analogous
#3996B4 #3958B4 #5839B4
triadic
#3958B4 #B43958 #58B439
tetradic
#3958B4 #B43996 #B49539 #39B458
square
#3958B4 #B43996 #B49539 #39B458
split-complementary
#3958B4 #B45839 #96B439
monochromatic
#1C2B57 #2A4186 #3958B4 #5E7ACC #8DA0DB

Accessibility & contrast

On white

6.50
#3958B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#3958B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3958B4
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3958B4#FFFFFF#000000##FFFFFF
##3958B41.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2164B7
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3958b4;
/* rgb */ color: rgb(57, 88, 180);
/* oklch */ color: oklch(48.8% 0.150 266.8);
Tailwind
colors: {
  custom: {
    50: '#7e86cb',
    500: '#3958b4',
    950: '#000000',
  },
}
SCSS
$custom: #3958b4;
$custom-light: #7e86cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3958b4",
  "rgb": {
    "r": 57,
    "g": 88,
    "b": 180
  },
  "hsl": {
    "h": 224.878,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48833,
    "c": 0.1504,
    "h": 266.8
  },
  "luminance": 0.11145
}

Semantic roles & 50–950 ramp

primary
#3958B4
secondary
#C5B583
accent
#B74CDB
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #3958B4

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

Preview Lab → · Contrast checker → · Palette generator →

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