#3958B5#3958B5

#3958B5 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.9% C 0.152 H 266.8°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#3958B5
RGBrgb(57, 88, 181)
HSLhsl(225, 52%, 47%)
HSVhsv(225, 69%, 71%)
CMYKcmyk(68.5%, 51.4%, 0%, 29%)
CIE-LABlab(39.89, 20.07, -52.78)
CIE-LCHlch(39.89, 56.47, 290.82°)
OKLaboklab(48.91% -0.0084 -0.1516)
OKLCHoklch(48.91% 0.152 266.8)
XYZxyz(13.5147, 11.1842, 45.1536)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3958B5 #B59639
analogous
#3996B5 #3958B5 #5839B5
triadic
#3958B5 #B53958 #58B539
tetradic
#3958B5 #B53996 #B59639 #39B558
square
#3958B5 #B53996 #B59639 #39B558
split-complementary
#3958B5 #B55839 #96B539
monochromatic
#1C2B58 #2A4186 #3958B5 #5F7ACD #8DA1DB

Accessibility & contrast

On white

6.49
#3958B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#3958B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3958B5
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3958B5#FFFFFF#000000##FFFFFF
##3958B51.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2064B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3958b5;
/* rgb */ color: rgb(57, 88, 181);
/* oklch */ color: oklch(48.9% 0.152 266.8);
Tailwind
colors: {
  custom: {
    50: '#7e86cc',
    500: '#3958b5',
    950: '#000000',
  },
}
SCSS
$custom: #3958b5;
$custom-light: #7e86cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3958b5",
  "rgb": {
    "r": 57,
    "g": 88,
    "b": 181
  },
  "hsl": {
    "h": 225,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48907,
    "c": 0.15179,
    "h": 266.8
  },
  "luminance": 0.11186
}

Semantic roles & 50–950 ramp

primary
#3958B5
secondary
#C6B584
accent
#B84CDC
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #3958B5

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

Preview Lab → · Contrast checker → · Palette generator →

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