#3A5CCC#3A5CCC

#3A5CCC is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.5% C 0.178 H 267.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#3A5CCC
RGBrgb(58, 92, 204)
HSLhsl(226, 59%, 51%)
HSVhsv(226, 72%, 80%)
CMYKcmyk(71.6%, 54.9%, 0%, 20%)
CIE-LABlab(42.63, 26.02, -61.73)
CIE-LCHlch(42.63, 66.99, 292.86°)
OKLaboklab(51.51% -0.009 -0.1778)
OKLCHoklch(51.51% 0.178 267.1)
XYZxyz(16.4674, 12.9118, 58.7394)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5CCC #CCAA3A
analogous
#3AA5CC #3A5CCC #613ACC
triadic
#3A5CCC #CC3A5C #5CCC3A
tetradic
#3A5CCC #CC3AA5 #CCAA3A #3ACC61
square
#3A5CCC #CC3AA5 #CCAA3A #3ACC61
split-complementary
#3A5CCC #CC613A #A5CC3A
monochromatic
#1D306F #2945A0 #3A5CCC #6B84D9 #9BACE5

Accessibility & contrast

On white

5.86
#3A5CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#3A5CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5CCC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5CCC#FFFFFF#000000##FFFFFF
##3A5CCC1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#00778B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a5ccc;
/* rgb */ color: rgb(58, 92, 204);
/* oklch */ color: oklch(51.5% 0.178 267.1);
Tailwind
colors: {
  custom: {
    50: '#8389dc',
    500: '#3a5ccc',
    950: '#000000',
  },
}
SCSS
$custom: #3a5ccc;
$custom-light: #8389dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5ccc",
  "rgb": {
    "r": 58,
    "g": 92,
    "b": 204
  },
  "hsl": {
    "h": 226.027,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51506,
    "c": 0.17802,
    "h": 267.1
  },
  "luminance": 0.12913
}

Semantic roles & 50–950 ramp

primary
#3A5CCC
secondary
#D1C291
accent
#BE46E2
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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