#3A5CD5#3A5CD5

#3A5CD5 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.2% C 0.190 H 267.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#3A5CD5
RGBrgb(58, 92, 213)
HSLhsl(227, 65%, 53%)
HSVhsv(227, 73%, 84%)
CMYKcmyk(72.8%, 56.8%, 0%, 16.5%)
CIE-LABlab(43.30, 29.29, -65.81)
CIE-LCHlch(43.30, 72.04, 293.99°)
OKLaboklab(52.22% -0.0086 -0.1898)
OKLCHoklch(52.22% 0.19 267.4)
XYZxyz(17.5781, 13.3561, 64.5895)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5CD5 #D5B33A
analogous
#3AA9D5 #3A5CD5 #653AD5
triadic
#3A5CD5 #D53A5C #5CD53A
tetradic
#3A5CD5 #D53AA9 #D5B33A #3AD565
square
#3A5CD5 #D53AA9 #D5B33A #3AD565
split-complementary
#3A5CD5 #D5653A #A9D53A
monochromatic
#1A2F7A #2543AD #3A5CD5 #6C86E0 #9FAFEB

Accessibility & contrast

On white

5.72
#3A5CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#3A5CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5CD5
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5CD5#FFFFFF#000000##FFFFFF
##3A5CD51.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED9
Deuteranopia (green-blind)
#005FD3
Tritanopia (blue-blind)
#007A8F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3a5cd5;
/* rgb */ color: rgb(58, 92, 213);
/* oklch */ color: oklch(52.2% 0.190 267.4);
Tailwind
colors: {
  custom: {
    50: '#8589e3',
    500: '#3a5cd5',
    950: '#000000',
  },
}
SCSS
$custom: #3a5cd5;
$custom-light: #8589e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5cd5",
  "rgb": {
    "r": 58,
    "g": 92,
    "b": 213
  },
  "hsl": {
    "h": 226.839,
    "s": 64.854,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52215,
    "c": 0.19,
    "h": 267.4
  },
  "luminance": 0.13358
}

Semantic roles & 50–950 ramp

primary
#3A5CD5
secondary
#D7C894
accent
#C340E8
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0D0B15
muted
#7D7C84

Preview Lab

Preview with #3A5CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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