#3A5EC7#3A5EC7

#3A5EC7 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.5% C 0.169 H 266.3°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#3A5EC7
RGBrgb(58, 94, 199)
HSLhsl(225, 56%, 50%)
HSVhsv(225, 71%, 78%)
CMYKcmyk(70.9%, 52.8%, 0%, 22%)
CIE-LABlab(42.80, 22.92, -58.56)
CIE-LCHlch(42.80, 62.88, 291.37°)
OKLaboklab(51.52% -0.011 -0.1684)
OKLCHoklch(51.52% 0.169 266.3)
XYZxyz(16.0528, 13.0268, 55.6902)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5EC7 #C7A33A
analogous
#3AA4C7 #3A5EC7 #5C3AC7
triadic
#3A5EC7 #C73A5E #5EC73A
tetradic
#3A5EC7 #C73AA4 #C7A33A #3AC75C
square
#3A5EC7 #C73AA4 #C7A33A #3AC75C
split-complementary
#3A5EC7 #C75C3A #A4C73A
monochromatic
#1E3169 #2B4798 #3A5EC7 #6A85D5 #99ACE2

Accessibility & contrast

On white

5.82
#3A5EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3A5EC7
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5EC7#FFFFFF#000000##FFFFFF
##3A5EC71.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156CCB
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a5ec7;
/* rgb */ color: rgb(58, 94, 199);
/* oklch */ color: oklch(51.5% 0.169 266.3);
Tailwind
colors: {
  custom: {
    50: '#828bd9',
    500: '#3a5ec7',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ec7;
$custom-light: #828bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ec7",
  "rgb": {
    "r": 58,
    "g": 94,
    "b": 199
  },
  "hsl": {
    "h": 224.681,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51524,
    "c": 0.1688,
    "h": 266.3
  },
  "luminance": 0.13028
}

Semantic roles & 50–950 ramp

primary
#3A5EC7
secondary
#CEBE8F
accent
#B949DF
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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