#3A5EC8#3A5EC8

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

Color values

HEX#3A5EC8
RGBrgb(58, 94, 200)
HSLhsl(225, 56%, 51%)
HSVhsv(225, 71%, 78%)
CMYKcmyk(71%, 53%, 0%, 21.6%)
CIE-LABlab(42.87, 23.28, -59.02)
CIE-LCHlch(42.87, 63.45, 291.53°)
OKLaboklab(51.6% -0.0109 -0.1698)
OKLCHoklch(51.6% 0.17 266.3)
XYZxyz(16.1693, 13.0734, 56.3037)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5EC8 #C8A43A
analogous
#3AA5C8 #3A5EC8 #5D3AC8
triadic
#3A5EC8 #C83A5E #5EC83A
tetradic
#3A5EC8 #C83AA5 #C8A43A #3AC85D
square
#3A5EC8 #C83AA5 #C8A43A #3AC85D
split-complementary
#3A5EC8 #C85D3A #A5C83A
monochromatic
#1E316A #2B479A #3A5EC8 #6A85D5 #9AACE3

Accessibility & contrast

On white

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

On black

3.62
#3A5EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3A5EC8#FFFFFF#000000##FFFFFF
##3A5EC81.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126CCC
Deuteranopia (green-blind)
#005FC6
Tritanopia (blue-blind)
#00778A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a5ec8;
/* rgb */ color: rgb(58, 94, 200);
/* oklch */ color: oklch(51.6% 0.170 266.3);
Tailwind
colors: {
  custom: {
    50: '#828bd9',
    500: '#3a5ec8',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ec8;
$custom-light: #828bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ec8",
  "rgb": {
    "r": 58,
    "g": 94,
    "b": 200
  },
  "hsl": {
    "h": 224.789,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51599,
    "c": 0.17016,
    "h": 266.3
  },
  "luminance": 0.13075
}

Semantic roles & 50–950 ramp

primary
#3A5EC8
secondary
#CEBE8F
accent
#B948E0
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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