#3A5CC7#3A5CC7

#3A5CC7 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.1% C 0.171 H 266.9°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#3A5CC7
RGBrgb(58, 92, 199)
HSLhsl(226, 56%, 50%)
HSVhsv(226, 71%, 78%)
CMYKcmyk(70.9%, 53.8%, 0%, 22%)
CIE-LABlab(42.27, 24.20, -59.42)
CIE-LCHlch(42.27, 64.16, 292.16°)
OKLaboklab(51.12% -0.0093 -0.171)
OKLCHoklch(51.12% 0.171 266.9)
XYZxyz(15.8773, 12.6757, 55.6317)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5CC7 #C7A53A
analogous
#3AA2C7 #3A5CC7 #5E3AC7
triadic
#3A5CC7 #C73A5C #5CC73A
tetradic
#3A5CC7 #C73AA2 #C7A53A #3AC75E
square
#3A5CC7 #C73AA2 #C7A53A #3AC75E
split-complementary
#3A5CC7 #C75E3A #A2C73A
monochromatic
#1E3069 #2B4698 #3A5CC7 #6A83D5 #99ABE2

Accessibility & contrast

On white

5.94
#3A5CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#3A5CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5CC7
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5CC7#FFFFFF#000000##FFFFFF
##3A5CC71.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076BCB
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5cc7;
/* rgb */ color: rgb(58, 92, 199);
/* oklch */ color: oklch(51.1% 0.171 266.9);
Tailwind
colors: {
  custom: {
    50: '#8289d9',
    500: '#3a5cc7',
    950: '#000000',
  },
}
SCSS
$custom: #3a5cc7;
$custom-light: #8289d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5cc7",
  "rgb": {
    "r": 58,
    "g": 92,
    "b": 199
  },
  "hsl": {
    "h": 225.532,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51121,
    "c": 0.17127,
    "h": 266.9
  },
  "luminance": 0.12677
}

Semantic roles & 50–950 ramp

primary
#3A5CC7
secondary
#CEBF8F
accent
#BB49DF
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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