#3954CD#3954CD

#3954CD is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.0% C 0.189 H 268.8°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#3954CD
RGBrgb(57, 84, 205)
HSLhsl(229, 60%, 51%)
HSVhsv(229, 72%, 80%)
CMYKcmyk(72.2%, 59%, 0%, 19.6%)
CIE-LABlab(40.60, 31.38, -65.61)
CIE-LCHlch(40.60, 72.72, 295.56°)
OKLaboklab(50% -0.0038 -0.1893)
OKLCHoklch(50% 0.189 268.8)
XYZxyz(15.8733, 11.6166, 59.1515)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954CD #CDB239
analogous
#399ECD #3954CD #6839CD
triadic
#3954CD #CD3954 #54CD39
tetradic
#3954CD #CD399E #CDB239 #39CD68
square
#3954CD #CD399E #CDB239 #39CD68
split-complementary
#3954CD #CD6839 #9ECD39
monochromatic
#1C2B6F #283EA0 #3954CD #6A7ED9 #9BA8E6

Accessibility & contrast

On white

6.32
#3954CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#3954CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954CD
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954CD#FFFFFF#000000##FFFFFF
##3954CD1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#0059CB
Tritanopia (blue-blind)
#007288
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #3954cd;
/* rgb */ color: rgb(57, 84, 205);
/* oklch */ color: oklch(50.0% 0.189 268.8);
Tailwind
colors: {
  custom: {
    50: '#8383dd',
    500: '#3954cd',
    950: '#000000',
  },
}
SCSS
$custom: #3954cd;
$custom-light: #8383dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3954cd",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 229.054,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49997,
    "c": 0.18936,
    "h": 268.8
  },
  "luminance": 0.11618
}

Semantic roles & 50–950 ramp

primary
#3954CD
secondary
#D2C690
accent
#C645E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3954CD

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

Preview Lab → · Contrast checker → · Palette generator →

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