#3A5BC2#3A5BC2

#3A5BC2 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.5% C 0.166 H 266.9°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#3A5BC2
RGBrgb(58, 91, 194)
HSLhsl(225, 54%, 49%)
HSVhsv(225, 70%, 76%)
CMYKcmyk(70.1%, 53.1%, 0%, 23.9%)
CIE-LABlab(41.65, 23.02, -57.53)
CIE-LCHlch(41.65, 61.97, 291.81°)
OKLaboklab(50.54% -0.0089 -0.1655)
OKLCHoklch(50.54% 0.166 266.9)
XYZxyz(15.2202, 12.2752, 52.5957)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5BC2 #C2A13A
analogous
#3A9FC2 #3A5BC2 #5D3AC2
triadic
#3A5BC2 #C23A5B #5BC23A
tetradic
#3A5BC2 #C23A9F #C2A13A #3AC25D
square
#3A5BC2 #C23A9F #C2A13A #3AC25D
split-complementary
#3A5BC2 #C25D3A #9FC23A
monochromatic
#1E2F64 #2C4593 #3A5BC2 #6781D2 #97A8E0

Accessibility & contrast

On white

6.08
#3A5BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#3A5BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5BC2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5BC2#FFFFFF#000000##FFFFFF
##3A5BC21.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1269C6
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#007486
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3a5bc2;
/* rgb */ color: rgb(58, 91, 194);
/* oklch */ color: oklch(50.5% 0.166 266.9);
Tailwind
colors: {
  custom: {
    50: '#8188d5',
    500: '#3a5bc2',
    950: '#000000',
  },
}
SCSS
$custom: #3a5bc2;
$custom-light: #8188d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5bc2",
  "rgb": {
    "r": 58,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 225.441,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50541,
    "c": 0.16569,
    "h": 266.9
  },
  "luminance": 0.12277
}

Semantic roles & 50–950 ramp

primary
#3A5BC2
secondary
#CBBC8D
accent
#BA4ADD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #3A5BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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