#3A5FCE#3A5FCE

#3A5FCE is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.3% C 0.177 H 266.4°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#3A5FCE
RGBrgb(58, 95, 206)
HSLhsl(225, 60%, 52%)
HSVhsv(225, 72%, 81%)
CMYKcmyk(71.8%, 53.9%, 0%, 19.2%)
CIE-LABlab(43.56, 24.83, -61.36)
CIE-LCHlch(43.56, 66.20, 292.03°)
OKLaboklab(52.26% -0.0112 -0.1767)
OKLCHoklch(52.26% 0.177 266.4)
XYZxyz(16.9738, 13.5384, 60.0992)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FCE #CEA93A
analogous
#3AA9CE #3A5FCE #5F3ACE
triadic
#3A5FCE #CE3A5F #5FCE3A
tetradic
#3A5FCE #CE3AA9 #CEA93A #3ACE5F
square
#3A5FCE #CE3AA9 #CEA93A #3ACE5F
split-complementary
#3A5FCE #CE5F3A #A9CE3A
monochromatic
#1C3271 #2847A2 #3A5FCE #6B87DA #9CAFE6

Accessibility & contrast

On white

5.66
#3A5FCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#3A5FCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FCE
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FCE#FFFFFF#000000##FFFFFF
##3A5FCE1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016ED2
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #3a5fce;
/* rgb */ color: rgb(58, 95, 206);
/* oklch */ color: oklch(52.3% 0.177 266.4);
Tailwind
colors: {
  custom: {
    50: '#838bde',
    500: '#3a5fce',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fce;
$custom-light: #838bde;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fce",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 206
  },
  "hsl": {
    "h": 225,
    "s": 60.163,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52255,
    "c": 0.17703,
    "h": 266.4
  },
  "luminance": 0.1354
}

Semantic roles & 50–950 ramp

primary
#3A5FCE
secondary
#D2C291
accent
#BC44E3
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #3A5FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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