#3A5EC1#3A5EC1

#3A5EC1 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.1% C 0.161 H 265.9°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#3A5EC1
RGBrgb(58, 94, 193)
HSLhsl(224, 54%, 49%)
HSVhsv(224, 70%, 76%)
CMYKcmyk(69.9%, 51.3%, 0%, 24.3%)
CIE-LABlab(42.39, 20.73, -55.75)
CIE-LCHlch(42.39, 59.48, 290.39°)
OKLaboklab(51.08% -0.0116 -0.1602)
OKLCHoklch(51.08% 0.161 265.9)
XYZxyz(15.3699, 12.7536, 52.0934)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5EC1 #C19D3A
analogous
#3AA2C1 #3A5EC1 #5A3AC1
triadic
#3A5EC1 #C13A5E #5EC13A
tetradic
#3A5EC1 #C13AA2 #C19D3A #3AC15A
square
#3A5EC1 #C13AA2 #C19D3A #3AC15A
split-complementary
#3A5EC1 #C15A3A #A2C13A
monochromatic
#1E3063 #2C4792 #3A5EC1 #6783D1 #96AADF

Accessibility & contrast

On white

5.91
#3A5EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#3A5EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5EC1
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5EC1#FFFFFF#000000##FFFFFF
##3A5EC11.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216BC5
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5ec1;
/* rgb */ color: rgb(58, 94, 193);
/* oklch */ color: oklch(51.1% 0.161 265.9);
Tailwind
colors: {
  custom: {
    50: '#808bd4',
    500: '#3a5ec1',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ec1;
$custom-light: #808bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ec1",
  "rgb": {
    "r": 58,
    "g": 94,
    "b": 193
  },
  "hsl": {
    "h": 224,
    "s": 53.785,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51079,
    "c": 0.1606,
    "h": 265.9
  },
  "luminance": 0.12755
}

Semantic roles & 50–950 ramp

primary
#3A5EC1
secondary
#CBBA8C
accent
#B64BDD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3A5EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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