#3A5FC4#3A5FC4

#3A5FC4 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.5% C 0.163 H 265.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#3A5FC4
RGBrgb(58, 95, 196)
HSLhsl(224, 54%, 50%)
HSVhsv(224, 70%, 77%)
CMYKcmyk(70.4%, 51.5%, 0%, 23.1%)
CIE-LABlab(42.87, 21.18, -56.72)
CIE-LCHlch(42.87, 60.55, 290.47°)
OKLaboklab(51.51% -0.0121 -0.163)
OKLCHoklch(51.51% 0.163 265.7)
XYZxyz(15.7975, 13.0679, 53.9037)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FC4 #C49F3A
analogous
#3AA4C4 #3A5FC4 #5A3AC4
triadic
#3A5FC4 #C43A5F #5FC43A
tetradic
#3A5FC4 #C43AA4 #C49F3A #3AC45A
square
#3A5FC4 #C43AA4 #C49F3A #3AC45A
split-complementary
#3A5FC4 #C45A3A #A4C43A
monochromatic
#1E3166 #2C4895 #3A5FC4 #6985D3 #98ABE0

Accessibility & contrast

On white

5.81
#3A5FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#3A5FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FC4
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FC4#FFFFFF#000000##FFFFFF
##3A5FC41.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6CC8
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a5fc4;
/* rgb */ color: rgb(58, 95, 196);
/* oklch */ color: oklch(51.5% 0.163 265.7);
Tailwind
colors: {
  custom: {
    50: '#818bd6',
    500: '#3a5fc4',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fc4;
$custom-light: #818bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fc4",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 196
  },
  "hsl": {
    "h": 223.913,
    "s": 54.331,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51505,
    "c": 0.16347,
    "h": 265.7
  },
  "luminance": 0.13069
}

Semantic roles & 50–950 ramp

primary
#3A5FC4
secondary
#CCBB8E
accent
#B64ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #3A5FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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