#3954D5#3954D5

#3954D5 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.7% C 0.200 H 268.9°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#3954D5
RGBrgb(57, 84, 213)
HSLhsl(230, 65%, 53%)
HSVhsv(230, 73%, 84%)
CMYKcmyk(73.2%, 60.6%, 0%, 16.5%)
CIE-LABlab(41.24, 34.25, -69.17)
CIE-LCHlch(41.24, 77.19, 296.34°)
OKLaboklab(50.67% -0.0038 -0.1998)
OKLCHoklch(50.67% 0.2 268.9)
XYZxyz(16.8638, 12.0128, 64.3678)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954D5 #D5BA39
analogous
#39A2D5 #3954D5 #6C39D5
triadic
#3954D5 #D53954 #54D539
tetradic
#3954D5 #D539A2 #D5BA39 #39D56C
square
#3954D5 #D539A2 #D5BA39 #39D56C
split-complementary
#3954D5 #D56C39 #A2D539
monochromatic
#1A2A7A #253CAC #3954D5 #6B80E0 #9EABEA

Accessibility & contrast

On white

6.17
#3954D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#3954D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954D5
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954D5#FFFFFF#000000##FFFFFF
##3954D51.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D9
Deuteranopia (green-blind)
#005AD3
Tritanopia (blue-blind)
#00758C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3954d5;
/* rgb */ color: rgb(57, 84, 213);
/* oklch */ color: oklch(50.7% 0.200 268.9);
Tailwind
colors: {
  custom: {
    50: '#8584e3',
    500: '#3954d5',
    950: '#000000',
  },
}
SCSS
$custom: #3954d5;
$custom-light: #8584e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3954d5",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 213
  },
  "hsl": {
    "h": 229.615,
    "s": 65,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50668,
    "c": 0.19982,
    "h": 268.9
  },
  "luminance": 0.12015
}

Semantic roles & 50–950 ramp

primary
#3954D5
secondary
#D7CB93
accent
#CB40E8
background
#F8F8FE
surface
#F0EFFC
border
#CBCAD5
text
#0D0A16
muted
#7D7C84

Preview Lab

Preview with #3954D5

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

Preview Lab → · Contrast checker → · Palette generator →

#3954D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva