#3954CC#3954CC

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

Color values

HEX#3954CC
RGBrgb(57, 84, 204)
HSLhsl(229, 59%, 51%)
HSVhsv(229, 72%, 80%)
CMYKcmyk(72.1%, 58.8%, 0%, 20%)
CIE-LABlab(40.52, 31.02, -65.16)
CIE-LCHlch(40.52, 72.16, 295.46°)
OKLaboklab(49.92% -0.0038 -0.188)
OKLCHoklch(49.92% 0.188 268.8)
XYZxyz(15.7530, 11.5685, 58.5178)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954CC #CCB139
analogous
#399DCC #3954CC #6739CC
triadic
#3954CC #CC3954 #54CC39
tetradic
#3954CC #CC399D #CCB139 #39CC67
square
#3954CC #CC399D #CCB139 #39CC67
split-complementary
#3954CC #CC6739 #9DCC39
monochromatic
#1C2B6E #293F9F #3954CC #6A7ED9 #9AA8E5

Accessibility & contrast

On white

6.34
#3954CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#3954CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954CC
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954CC#FFFFFF#000000##FFFFFF
##3954CC1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3954cc;
/* rgb */ color: rgb(57, 84, 204);
/* oklch */ color: oklch(49.9% 0.188 268.8);
Tailwind
colors: {
  custom: {
    50: '#8383dc',
    500: '#3954cc',
    950: '#000000',
  },
}
SCSS
$custom: #3954cc;
$custom-light: #8383dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3954cc",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 228.98,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49915,
    "c": 0.18804,
    "h": 268.8
  },
  "luminance": 0.1157
}

Semantic roles & 50–950 ramp

primary
#3954CC
secondary
#D1C590
accent
#C546E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3954CC

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

Preview Lab → · Contrast checker → · Palette generator →

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