#3A5FB4#3A5FB4

#3A5FB4 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.4% C 0.141 H 264.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#3A5FB4
RGBrgb(58, 95, 180)
HSLhsl(222, 51%, 47%)
HSVhsv(222, 68%, 71%)
CMYKcmyk(67.8%, 47.2%, 0%, 29.4%)
CIE-LABlab(41.81, 15.33, -49.10)
CIE-LCHlch(41.81, 51.44, 287.34°)
OKLaboklab(50.36% -0.0141 -0.1406)
OKLCHoklch(50.36% 0.141 264.3)
XYZxyz(14.0725, 12.3779, 44.8187)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FB4 #B48F3A
analogous
#3A9CB4 #3A5FB4 #523AB4
triadic
#3A5FB4 #B43A5F #5FB43A
tetradic
#3A5FB4 #B43A9C #B48F3A #3AB452
square
#3A5FB4 #B43A9C #B48F3A #3AB452
split-complementary
#3A5FB4 #B4523A #9CB43A
monochromatic
#1C2E57 #2B4786 #3A5FB4 #6080CC #8EA5DB

Accessibility & contrast

On white

6.04
#3A5FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#3A5FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FB4
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FB4#FFFFFF#000000##FFFFFF
##3A5FB41.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3369B7
Deuteranopia (green-blind)
#195DB2
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3a5fb4;
/* rgb */ color: rgb(58, 95, 180);
/* oklch */ color: oklch(50.4% 0.141 264.3);
Tailwind
colors: {
  custom: {
    50: '#7e8bcb',
    500: '#3a5fb4',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fb4;
$custom-light: #7e8bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fb4",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 180
  },
  "hsl": {
    "h": 221.803,
    "s": 51.261,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50363,
    "c": 0.14131,
    "h": 264.3
  },
  "luminance": 0.12379
}

Semantic roles & 50–950 ramp

primary
#3A5FB4
secondary
#C5B285
accent
#B04DDB
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #3A5FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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