#3958C9#3958C9

#3958C9 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.4% C 0.179 H 267.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#3958C9
RGBrgb(57, 88, 201)
HSLhsl(227, 57%, 51%)
HSVhsv(227, 72%, 79%)
CMYKcmyk(71.6%, 56.2%, 0%, 21.2%)
CIE-LABlab(41.32, 27.37, -62.13)
CIE-LCHlch(41.32, 67.89, 293.78°)
OKLaboklab(50.44% -0.0069 -0.179)
OKLCHoklch(50.44% 0.179 267.8)
XYZxyz(15.7160, 12.0647, 56.7475)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3958C9 #C9AA39
analogous
#39A0C9 #3958C9 #6239C9
triadic
#3958C9 #C93958 #58C939
tetradic
#3958C9 #C939A0 #C9AA39 #39C962
square
#3958C9 #C939A0 #C9AA39 #39C962
split-complementary
#3958C9 #C96239 #A0C939
monochromatic
#1D2E6B #2A429B #3958C9 #6981D6 #99A9E3

Accessibility & contrast

On white

6.15
#3958C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#3958C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3958C9
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3958C9#FFFFFF#000000##FFFFFF
##3958C91.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CD
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#007488
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3958c9;
/* rgb */ color: rgb(57, 88, 201);
/* oklch */ color: oklch(50.4% 0.179 267.8);
Tailwind
colors: {
  custom: {
    50: '#8286da',
    500: '#3958c9',
    950: '#000000',
  },
}
SCSS
$custom: #3958c9;
$custom-light: #8286da;
$custom-dark: #000000;
JSON
{
  "hex": "#3958c9",
  "rgb": {
    "r": 57,
    "g": 88,
    "b": 201
  },
  "hsl": {
    "h": 227.083,
    "s": 57.143,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50438,
    "c": 0.17917,
    "h": 267.8
  },
  "luminance": 0.12066
}

Semantic roles & 50–950 ramp

primary
#3958C9
secondary
#CFC18F
accent
#BF47E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3958C9

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

Preview Lab → · Contrast checker → · Palette generator →

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