#3A5BCC#3A5BCC

#3A5BCC is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.3% C 0.179 H 267.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#3A5BCC
RGBrgb(58, 91, 204)
HSLhsl(226, 59%, 51%)
HSVhsv(226, 72%, 80%)
CMYKcmyk(71.6%, 55.4%, 0%, 20%)
CIE-LABlab(42.37, 26.67, -62.15)
CIE-LCHlch(42.37, 67.63, 293.22°)
OKLaboklab(51.31% -0.0082 -0.179)
OKLCHoklch(51.31% 0.179 267.4)
XYZxyz(16.3813, 12.7396, 58.7107)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5BCC #CCAB3A
analogous
#3AA4CC #3A5BCC #623ACC
triadic
#3A5BCC #CC3A5B #5BCC3A
tetradic
#3A5BCC #CC3AA4 #CCAB3A #3ACC62
square
#3A5BCC #CC3AA4 #CCAB3A #3ACC62
split-complementary
#3A5BCC #CC623A #A4CC3A
monochromatic
#1D2F6F #2944A0 #3A5BCC #6B83D9 #9BACE5

Accessibility & contrast

On white

5.92
#3A5BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#3A5BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5BCC
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5BCC#FFFFFF#000000##FFFFFF
##3A5BCC1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#00778A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5bcc;
/* rgb */ color: rgb(58, 91, 204);
/* oklch */ color: oklch(51.3% 0.179 267.4);
Tailwind
colors: {
  custom: {
    50: '#8389dc',
    500: '#3a5bcc',
    950: '#000000',
  },
}
SCSS
$custom: #3a5bcc;
$custom-light: #8389dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5bcc",
  "rgb": {
    "r": 58,
    "g": 91,
    "b": 204
  },
  "hsl": {
    "h": 226.438,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51309,
    "c": 0.17924,
    "h": 267.4
  },
  "luminance": 0.12741
}

Semantic roles & 50–950 ramp

primary
#3A5BCC
secondary
#D1C391
accent
#BF46E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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