#3A5EC4#3A5EC4

#3A5EC4 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.3% C 0.165 H 266.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#3A5EC4
RGBrgb(58, 94, 196)
HSLhsl(224, 54%, 50%)
HSVhsv(224, 70%, 77%)
CMYKcmyk(70.4%, 52%, 0%, 23.1%)
CIE-LABlab(42.60, 21.82, -57.16)
CIE-LCHlch(42.60, 61.18, 290.89°)
OKLaboklab(51.3% -0.0113 -0.1643)
OKLCHoklch(51.3% 0.165 266.1)
XYZxyz(15.7080, 12.8889, 53.8738)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5EC4 #C4A03A
analogous
#3AA3C4 #3A5EC4 #5B3AC4
triadic
#3A5EC4 #C43A5E #5EC43A
tetradic
#3A5EC4 #C43AA3 #C4A03A #3AC45B
square
#3A5EC4 #C43AA3 #C4A03A #3AC45B
split-complementary
#3A5EC4 #C45B3A #A3C43A
monochromatic
#1E3166 #2C4795 #3A5EC4 #6984D3 #98ABE0

Accessibility & contrast

On white

5.87
#3A5EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#3A5EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5EC4
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5EC4#FFFFFF#000000##FFFFFF
##3A5EC41.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a5ec4;
/* rgb */ color: rgb(58, 94, 196);
/* oklch */ color: oklch(51.3% 0.165 266.1);
Tailwind
colors: {
  custom: {
    50: '#818bd7',
    500: '#3a5ec4',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ec4;
$custom-light: #818bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ec4",
  "rgb": {
    "r": 58,
    "g": 94,
    "b": 196
  },
  "hsl": {
    "h": 224.348,
    "s": 54.331,
    "l": 49.804
  },
  "oklch": {
    "l": 0.513,
    "c": 0.16471,
    "h": 266.1
  },
  "luminance": 0.1289
}

Semantic roles & 50–950 ramp

primary
#3A5EC4
secondary
#CCBC8E
accent
#B74ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3A5EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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