#3954B3#3954B3

#3954B3 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.9% C 0.154 H 268.1°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#3954B3
RGBrgb(57, 84, 179)
HSLhsl(227, 52%, 46%)
HSVhsv(227, 68%, 70%)
CMYKcmyk(68.2%, 53.1%, 0%, 29.8%)
CIE-LABlab(38.66, 21.95, -53.59)
CIE-LCHlch(38.66, 57.91, 292.27°)
OKLaboklab(47.93% -0.005 -0.154)
OKLCHoklch(47.93% 0.154 268.1)
XYZxyz(12.9916, 10.4639, 43.9742)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954B3 #B39839
analogous
#3991B3 #3954B3 #5B39B3
triadic
#3954B3 #B33954 #54B339
tetradic
#3954B3 #B33991 #B39839 #39B35B
square
#3954B3 #B33991 #B39839 #39B35B
split-complementary
#3954B3 #B35B39 #91B339
monochromatic
#1B2856 #2A3E85 #3954B3 #5E76CC #8C9DDA

Accessibility & contrast

On white

6.79
#3954B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#3954B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954B3
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954B3#FFFFFF#000000##FFFFFF
##3954B31.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1461B6
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3954b3;
/* rgb */ color: rgb(57, 84, 179);
/* oklch */ color: oklch(47.9% 0.154 268.1);
Tailwind
colors: {
  custom: {
    50: '#7e83ca',
    500: '#3954b3',
    950: '#000000',
  },
}
SCSS
$custom: #3954b3;
$custom-light: #7e83ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3954b3",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 179
  },
  "hsl": {
    "h": 226.721,
    "s": 51.695,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47934,
    "c": 0.15407,
    "h": 268.1
  },
  "luminance": 0.10465
}

Semantic roles & 50–950 ramp

primary
#3954B3
secondary
#C5B683
accent
#BC4DDB
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3954B3

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

Preview Lab → · Contrast checker → · Palette generator →

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