#3954A2#3954A2

#3954A2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.7% C 0.130 H 267.0°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#3954A2
RGBrgb(57, 84, 162)
HSLhsl(225, 48%, 43%)
HSVhsv(225, 65%, 64%)
CMYKcmyk(64.8%, 48.1%, 0%, 36.5%)
CIE-LABlab(37.51, 15.75, -45.35)
CIE-LCHlch(37.51, 48.01, 289.15°)
OKLaboklab(46.69% -0.0069 -0.1297)
OKLCHoklch(46.69% 0.13 267)
XYZxyz(11.3770, 9.8181, 35.4709)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954A2 #A28739
analogous
#3989A2 #3954A2 #5239A2
triadic
#3954A2 #A23954 #54A239
tetradic
#3954A2 #A23989 #A28739 #39A252
square
#3954A2 #A23989 #A28739 #39A252
split-complementary
#3954A2 #A25239 #89A239
monochromatic
#192547 #293D75 #3954A2 #5571C3 #8297D3

Accessibility & contrast

On white

7.09
#3954A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#3954A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3954A2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954A2#FFFFFF#000000##FFFFFF
##3954A21.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5DA5
Deuteranopia (green-blind)
#1854A0
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3954a2;
/* rgb */ color: rgb(57, 84, 162);
/* oklch */ color: oklch(46.7% 0.130 267.0);
Tailwind
colors: {
  custom: {
    50: '#7a83be',
    500: '#3954a2',
    950: '#000000',
  },
}
SCSS
$custom: #3954a2;
$custom-light: #7a83be;
$custom-dark: #000000;
JSON
{
  "hex": "#3954a2",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 162
  },
  "hsl": {
    "h": 224.571,
    "s": 47.945,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46694,
    "c": 0.12993,
    "h": 267
  },
  "luminance": 0.09819
}

Semantic roles & 50–950 ramp

primary
#3954A2
secondary
#BDAC7A
accent
#B550D8
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3954A2

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

Preview Lab → · Contrast checker → · Palette generator →

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