#3A5FC5#3A5FC5

#3A5FC5 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.6% C 0.165 H 265.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#3A5FC5
RGBrgb(58, 95, 197)
HSLhsl(224, 55%, 50%)
HSVhsv(224, 71%, 77%)
CMYKcmyk(70.6%, 51.8%, 0%, 22.7%)
CIE-LABlab(42.93, 21.54, -57.19)
CIE-LCHlch(42.93, 61.12, 290.64°)
OKLaboklab(51.58% -0.012 -0.1644)
OKLCHoklch(51.58% 0.165 265.8)
XYZxyz(15.9117, 13.1135, 54.5051)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FC5 #C5A03A
analogous
#3AA4C5 #3A5FC5 #5B3AC5
triadic
#3A5FC5 #C53A5F #5FC53A
tetradic
#3A5FC5 #C53AA4 #C5A03A #3AC55B
square
#3A5FC5 #C53AA4 #C5A03A #3AC55B
split-complementary
#3A5FC5 #C55B3A #A4C53A
monochromatic
#1E3166 #2C4896 #3A5FC5 #6985D3 #99ACE1

Accessibility & contrast

On white

5.80
#3A5FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#3A5FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FC5
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FC5#FFFFFF#000000##FFFFFF
##3A5FC51.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6CC9
Deuteranopia (green-blind)
#005FC3
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a5fc5;
/* rgb */ color: rgb(58, 95, 197);
/* oklch */ color: oklch(51.6% 0.165 265.8);
Tailwind
colors: {
  custom: {
    50: '#818bd7',
    500: '#3a5fc5',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fc5;
$custom-light: #818bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fc5",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 197
  },
  "hsl": {
    "h": 224.029,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.51579,
    "c": 0.16484,
    "h": 265.8
  },
  "luminance": 0.13115
}

Semantic roles & 50–950 ramp

primary
#3A5FC5
secondary
#CDBC8E
accent
#B64ADE
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #3A5FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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