#3A5CC6#3A5CC6

#3A5CC6 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.0% C 0.170 H 266.8°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#3A5CC6
RGBrgb(58, 92, 198)
HSLhsl(225, 55%, 50%)
HSVhsv(225, 71%, 78%)
CMYKcmyk(70.7%, 53.5%, 0%, 22.4%)
CIE-LABlab(42.20, 23.84, -58.96)
CIE-LCHlch(42.20, 63.60, 292.02°)
OKLaboklab(51.04% -0.0094 -0.1696)
OKLCHoklch(51.04% 0.17 266.8)
XYZxyz(15.7616, 12.6294, 55.0222)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5CC6 #C6A43A
analogous
#3AA2C6 #3A5CC6 #5E3AC6
triadic
#3A5CC6 #C63A5C #5CC63A
tetradic
#3A5CC6 #C63AA2 #C6A43A #3AC65E
square
#3A5CC6 #C63AA2 #C6A43A #3AC65E
split-complementary
#3A5CC6 #C65E3A #A2C63A
monochromatic
#1E3068 #2C4697 #3A5CC6 #6983D4 #99ABE1

Accessibility & contrast

On white

5.96
#3A5CC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#3A5CC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5CC6
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5CC6#FFFFFF#000000##FFFFFF
##3A5CC61.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6ACA
Deuteranopia (green-blind)
#005DC4
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5cc6;
/* rgb */ color: rgb(58, 92, 198);
/* oklch */ color: oklch(51.0% 0.170 266.8);
Tailwind
colors: {
  custom: {
    50: '#8189d8',
    500: '#3a5cc6',
    950: '#000000',
  },
}
SCSS
$custom: #3a5cc6;
$custom-light: #8189d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5cc6",
  "rgb": {
    "r": 58,
    "g": 92,
    "b": 198
  },
  "hsl": {
    "h": 225.429,
    "s": 55.118,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51045,
    "c": 0.16991,
    "h": 266.8
  },
  "luminance": 0.12631
}

Semantic roles & 50–950 ramp

primary
#3A5CC6
secondary
#CDBE8F
accent
#BA49DE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5CC6

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

Preview Lab → · Contrast checker → · Palette generator →

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