#3958A8#3958A8

#3958A8 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.0% C 0.133 H 265.7°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#3958A8
RGBrgb(57, 88, 168)
HSLhsl(223, 49%, 44%)
HSVhsv(223, 66%, 66%)
CMYKcmyk(66.1%, 47.6%, 0%, 34.1%)
CIE-LABlab(39.03, 15.32, -46.49)
CIE-LCHlch(39.03, 48.95, 288.24°)
OKLaboklab(47.98% -0.01 -0.133)
OKLCHoklch(47.98% 0.133 265.7)
XYZxyz(12.2425, 10.6753, 38.4536)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3958A8 #A88939
analogous
#3990A8 #3958A8 #5239A8
triadic
#3958A8 #A83958 #58A839
tetradic
#3958A8 #A83990 #A88939 #39A852
square
#3958A8 #A83990 #A88939 #39A852
split-complementary
#3958A8 #A85239 #90A839
monochromatic
#1A284D #29407A #3958A8 #5877C6 #869CD6

Accessibility & contrast

On white

6.70
#3958A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#3958A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3958A8
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3958A8#FFFFFF#000000##FFFFFF
##3958A81.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F61AB
Deuteranopia (green-blind)
#1957A6
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3958a8;
/* rgb */ color: rgb(57, 88, 168);
/* oklch */ color: oklch(48.0% 0.133 265.7);
Tailwind
colors: {
  custom: {
    50: '#7b86c2',
    500: '#3958a8',
    950: '#000000',
  },
}
SCSS
$custom: #3958a8;
$custom-light: #7b86c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3958a8",
  "rgb": {
    "r": 57,
    "g": 88,
    "b": 168
  },
  "hsl": {
    "h": 223.243,
    "s": 49.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47975,
    "c": 0.13343,
    "h": 265.7
  },
  "luminance": 0.10676
}

Semantic roles & 50–950 ramp

primary
#3958A8
secondary
#C0AD7D
accent
#B24FD9
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3958A8

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

Preview Lab → · Contrast checker → · Palette generator →

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