#3A5EC6#3A5EC6

#3A5EC6 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.4% C 0.167 H 266.2°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#3A5EC6
RGBrgb(58, 94, 198)
HSLhsl(225, 55%, 50%)
HSVhsv(225, 71%, 78%)
CMYKcmyk(70.7%, 52.5%, 0%, 22.4%)
CIE-LABlab(42.73, 22.55, -58.09)
CIE-LCHlch(42.73, 62.32, 291.22°)
OKLaboklab(51.45% -0.0111 -0.1671)
OKLCHoklch(51.45% 0.167 266.2)
XYZxyz(15.9371, 12.9805, 55.0807)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5EC6 #C6A23A
analogous
#3AA4C6 #3A5EC6 #5C3AC6
triadic
#3A5EC6 #C63A5E #5EC63A
tetradic
#3A5EC6 #C63AA4 #C6A23A #3AC65C
square
#3A5EC6 #C63AA4 #C6A23A #3AC65C
split-complementary
#3A5EC6 #C65C3A #A4C63A
monochromatic
#1E3168 #2C4797 #3A5EC6 #6985D4 #99ACE1

Accessibility & contrast

On white

5.84
#3A5EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#3A5EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5EC6
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5EC6#FFFFFF#000000##FFFFFF
##3A5EC61.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176CCA
Deuteranopia (green-blind)
#005FC4
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a5ec6;
/* rgb */ color: rgb(58, 94, 198);
/* oklch */ color: oklch(51.4% 0.167 266.2);
Tailwind
colors: {
  custom: {
    50: '#818bd8',
    500: '#3a5ec6',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ec6;
$custom-light: #818bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ec6",
  "rgb": {
    "r": 58,
    "g": 94,
    "b": 198
  },
  "hsl": {
    "h": 224.571,
    "s": 55.118,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51449,
    "c": 0.16744,
    "h": 266.2
  },
  "luminance": 0.12982
}

Semantic roles & 50–950 ramp

primary
#3A5EC6
secondary
#CDBD8F
accent
#B849DE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3A5EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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