#3954B2#3954B2

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

Color values

HEX#3954B2
RGBrgb(57, 84, 178)
HSLhsl(227, 51%, 46%)
HSVhsv(227, 68%, 70%)
CMYKcmyk(68%, 52.8%, 0%, 30.2%)
CIE-LABlab(38.59, 21.58, -53.11)
CIE-LCHlch(38.59, 57.33, 292.11°)
OKLaboklab(47.86% -0.0051 -0.1526)
OKLCHoklch(47.86% 0.153 268.1)
XYZxyz(12.8908, 10.4236, 43.4435)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954B2 #B29739
analogous
#3990B2 #3954B2 #5B39B2
triadic
#3954B2 #B23954 #54B239
tetradic
#3954B2 #B23990 #B29739 #39B25B
square
#3954B2 #B23990 #B29739 #39B25B
split-complementary
#3954B2 #B25B39 #90B239
monochromatic
#1B2855 #2A3E84 #3954B2 #5D76CB #8B9DDA

Accessibility & contrast

On white

6.81
#3954B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3954B2
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954B2#FFFFFF#000000##FFFFFF
##3954B21.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1761B5
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3954b2;
/* rgb */ color: rgb(57, 84, 178);
/* oklch */ color: oklch(47.9% 0.153 268.1);
Tailwind
colors: {
  custom: {
    50: '#7d83ca',
    500: '#3954b2',
    950: '#000000',
  },
}
SCSS
$custom: #3954b2;
$custom-light: #7d83ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3954b2",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 226.612,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47858,
    "c": 0.15267,
    "h": 268.1
  },
  "luminance": 0.10425
}

Semantic roles & 50–950 ramp

primary
#3954B2
secondary
#C4B682
accent
#BB4DDB
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3954B2

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

Preview Lab → · Contrast checker → · Palette generator →

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