#3958B9#3958B9

#3958B9 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.2% C 0.157 H 267.1°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#3958B9
RGBrgb(57, 88, 185)
HSLhsl(225, 53%, 47%)
HSVhsv(225, 69%, 73%)
CMYKcmyk(69.2%, 52.4%, 0%, 27.5%)
CIE-LABlab(40.16, 21.53, -54.68)
CIE-LCHlch(40.16, 58.77, 291.49°)
OKLaboklab(49.2% -0.008 -0.1572)
OKLCHoklch(49.2% 0.157 267.1)
XYZxyz(13.9310, 11.3507, 47.3463)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3958B9 #B99A39
analogous
#3998B9 #3958B9 #5A39B9
triadic
#3958B9 #B93958 #58B939
tetradic
#3958B9 #B93998 #B99A39 #39B95A
square
#3958B9 #B93998 #B99A39 #39B95A
split-complementary
#3958B9 #B95A39 #98B939
monochromatic
#1C2B5B #2B428A #3958B9 #617BCE #90A2DD

Accessibility & contrast

On white

6.42
#3958B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#3958B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3958B9
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3958B9#FFFFFF#000000##FFFFFF
##3958B91.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1965BC
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3958b9;
/* rgb */ color: rgb(57, 88, 185);
/* oklch */ color: oklch(49.2% 0.157 267.1);
Tailwind
colors: {
  custom: {
    50: '#7f86cf',
    500: '#3958b9',
    950: '#000000',
  },
}
SCSS
$custom: #3958b9;
$custom-light: #7f86cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3958b9",
  "rgb": {
    "r": 57,
    "g": 88,
    "b": 185
  },
  "hsl": {
    "h": 225.469,
    "s": 52.893,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49204,
    "c": 0.15735,
    "h": 267.1
  },
  "luminance": 0.11352
}

Semantic roles & 50–950 ramp

primary
#3958B9
secondary
#C8B886
accent
#B94BDC
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #3958B9

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

Preview Lab → · Contrast checker → · Palette generator →

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