#3954CB#3954CB

#3954CB is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.8% C 0.187 H 268.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#3954CB
RGBrgb(57, 84, 203)
HSLhsl(229, 58%, 51%)
HSVhsv(229, 72%, 80%)
CMYKcmyk(71.9%, 58.6%, 0%, 20.4%)
CIE-LABlab(40.44, 30.66, -64.70)
CIE-LCHlch(40.44, 71.60, 295.35°)
OKLaboklab(49.83% -0.0038 -0.1867)
OKLCHoklch(49.83% 0.187 268.8)
XYZxyz(15.6334, 11.5207, 57.8881)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954CB #CBB039
analogous
#399DCB #3954CB #6739CB
triadic
#3954CB #CB3954 #54CB39
tetradic
#3954CB #CB399D #CBB039 #39CB67
square
#3954CB #CB399D #CBB039 #39CB67
split-complementary
#3954CB #CB6739 #9DCB39
monochromatic
#1D2B6D #293F9D #3954CB #697ED8 #9AA8E4

Accessibility & contrast

On white

6.36
#3954CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#3954CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954CB
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954CB#FFFFFF#000000##FFFFFF
##3954CB1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#0059C9
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3954cb;
/* rgb */ color: rgb(57, 84, 203);
/* oklch */ color: oklch(49.8% 0.187 268.8);
Tailwind
colors: {
  custom: {
    50: '#8383dc',
    500: '#3954cb',
    950: '#000000',
  },
}
SCSS
$custom: #3954cb;
$custom-light: #8383dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3954cb",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 228.904,
    "s": 58.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49832,
    "c": 0.18671,
    "h": 268.8
  },
  "luminance": 0.11522
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3954CB

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

Preview Lab → · Contrast checker → · Palette generator →

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