#3A5CB4#3A5CB4

#3A5CB4 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.7% C 0.145 H 265.5°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#3A5CB4
RGBrgb(58, 92, 180)
HSLhsl(223, 51%, 47%)
HSVhsv(223, 68%, 71%)
CMYKcmyk(67.8%, 48.9%, 0%, 29.4%)
CIE-LABlab(40.97, 17.27, -50.45)
CIE-LCHlch(40.97, 53.32, 288.90°)
OKLaboklab(49.72% -0.0113 -0.1446)
OKLCHoklch(49.72% 0.145 265.5)
XYZxyz(13.8074, 11.8478, 44.7304)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5CB4 #B4923A
analogous
#3A99B4 #3A5CB4 #553AB4
triadic
#3A5CB4 #B43A5C #5CB43A
tetradic
#3A5CB4 #B43A99 #B4923A #3AB455
square
#3A5CB4 #B43A99 #B4923A #3AB455
split-complementary
#3A5CB4 #B4553A #99B43A
monochromatic
#1C2D57 #2B4486 #3A5CB4 #607ECC #8EA3DB

Accessibility & contrast

On white

6.23
#3A5CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#3A5CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5CB4
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5CB4#FFFFFF#000000##FFFFFF
##3A5CB41.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C67B7
Deuteranopia (green-blind)
#0C5BB2
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3a5cb4;
/* rgb */ color: rgb(58, 92, 180);
/* oklch */ color: oklch(49.7% 0.145 265.5);
Tailwind
colors: {
  custom: {
    50: '#7e89cb',
    500: '#3a5cb4',
    950: '#000000',
  },
}
SCSS
$custom: #3a5cb4;
$custom-light: #7e89cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5cb4",
  "rgb": {
    "r": 58,
    "g": 92,
    "b": 180
  },
  "hsl": {
    "h": 223.279,
    "s": 51.261,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49723,
    "c": 0.14504,
    "h": 265.5
  },
  "luminance": 0.11849
}

Semantic roles & 50–950 ramp

primary
#3A5CB4
secondary
#C5B385
accent
#B34DDB
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #3A5CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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