#3A5DC7#3A5DC7

#3A5DC7 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.3% C 0.170 H 266.6°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#3A5DC7
RGBrgb(58, 93, 199)
HSLhsl(225, 56%, 50%)
HSVhsv(225, 71%, 78%)
CMYKcmyk(70.9%, 53.3%, 0%, 22%)
CIE-LABlab(42.54, 23.56, -58.99)
CIE-LCHlch(42.54, 63.52, 291.77°)
OKLaboklab(51.32% -0.0102 -0.1697)
OKLCHoklch(51.32% 0.17 266.6)
XYZxyz(15.9645, 12.8501, 55.6607)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5DC7 #C7A43A
analogous
#3AA4C7 #3A5DC7 #5D3AC7
triadic
#3A5DC7 #C73A5D #5DC73A
tetradic
#3A5DC7 #C73AA4 #C7A43A #3AC75D
square
#3A5DC7 #C73AA4 #C7A43A #3AC75D
split-complementary
#3A5DC7 #C75D3A #A4C73A
monochromatic
#1E3069 #2B4698 #3A5DC7 #6A84D5 #99ABE2

Accessibility & contrast

On white

5.88
#3A5DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#3A5DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5DC7
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5DC7#FFFFFF#000000##FFFFFF
##3A5DC71.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6BCB
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5dc7;
/* rgb */ color: rgb(58, 93, 199);
/* oklch */ color: oklch(51.3% 0.170 266.6);
Tailwind
colors: {
  custom: {
    50: '#828ad9',
    500: '#3a5dc7',
    950: '#000000',
  },
}
SCSS
$custom: #3a5dc7;
$custom-light: #828ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5dc7",
  "rgb": {
    "r": 58,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 225.106,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51322,
    "c": 0.17003,
    "h": 266.6
  },
  "luminance": 0.12852
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A5DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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