#3954AF#3954AF

#3954AF is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.6% C 0.148 H 267.9°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#3954AF
RGBrgb(57, 84, 175)
HSLhsl(226, 51%, 45%)
HSVhsv(226, 67%, 69%)
CMYKcmyk(67.4%, 52%, 0%, 31.4%)
CIE-LABlab(38.38, 20.49, -51.68)
CIE-LCHlch(38.38, 55.59, 291.62°)
OKLaboklab(47.63% -0.0053 -0.1484)
OKLCHoklch(47.63% 0.148 267.9)
XYZxyz(12.5929, 10.3045, 41.8744)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954AF #AF9439
analogous
#398FAF #3954AF #5939AF
triadic
#3954AF #AF3954 #54AF39
tetradic
#3954AF #AF398F #AF9439 #39AF59
square
#3954AF #AF398F #AF9439 #39AF59
split-complementary
#3954AF #AF5939 #8FAF39
monochromatic
#1B2853 #2A3E81 #3954AF #5B75CA #8A9CD9

Accessibility & contrast

On white

6.86
#3954AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#3954AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954AF
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954AF#FFFFFF#000000##FFFFFF
##3954AF1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C60B2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3954af;
/* rgb */ color: rgb(57, 84, 175);
/* oklch */ color: oklch(47.6% 0.148 267.9);
Tailwind
colors: {
  custom: {
    50: '#7d83c7',
    500: '#3954af',
    950: '#000000',
  },
}
SCSS
$custom: #3954af;
$custom-light: #7d83c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3954af",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 175
  },
  "hsl": {
    "h": 226.271,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47634,
    "c": 0.14847,
    "h": 267.9
  },
  "luminance": 0.10306
}

Semantic roles & 50–950 ramp

primary
#3954AF
secondary
#C3B481
accent
#BA4DDA
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3954AF

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

Preview Lab → · Contrast checker → · Palette generator →

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