#3A5FB1#3A5FB1

#3A5FB1 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.2% C 0.137 H 263.9°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#3A5FB1
RGBrgb(58, 95, 177)
HSLhsl(221, 51%, 46%)
HSVhsv(221, 67%, 69%)
CMYKcmyk(67.2%, 46.3%, 0%, 30.6%)
CIE-LABlab(41.62, 14.24, -47.64)
CIE-LCHlch(41.62, 49.73, 286.64°)
OKLaboklab(50.16% -0.0146 -0.1363)
OKLCHoklch(50.16% 0.137 263.9)
XYZxyz(13.7702, 12.2569, 43.2266)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FB1 #B18C3A
analogous
#3A9AB1 #3A5FB1 #513AB1
triadic
#3A5FB1 #B13A5F #5FB13A
tetradic
#3A5FB1 #B13A9A #B18C3A #3AB151
square
#3A5FB1 #B13A9A #B18C3A #3AB151
split-complementary
#3A5FB1 #B1513A #9AB13A
monochromatic
#1C2E55 #2B4683 #3A5FB1 #5E80CA #8CA4D9

Accessibility & contrast

On white

6.08
#3A5FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#3A5FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FB1
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FB1#FFFFFF#000000##FFFFFF
##3A5FB11.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3668B4
Deuteranopia (green-blind)
#1F5DAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3a5fb1;
/* rgb */ color: rgb(58, 95, 177);
/* oklch */ color: oklch(50.2% 0.137 263.9);
Tailwind
colors: {
  custom: {
    50: '#7d8bc9',
    500: '#3a5fb1',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fb1;
$custom-light: #7d8bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fb1",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 177
  },
  "hsl": {
    "h": 221.345,
    "s": 50.638,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50158,
    "c": 0.13709,
    "h": 263.9
  },
  "luminance": 0.12258
}

Semantic roles & 50–950 ramp

primary
#3A5FB1
secondary
#C4B083
accent
#AE4EDA
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #3A5FB1

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

Preview Lab → · Contrast checker → · Palette generator →

#3A5FB1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva