#3A5FC2#3A5FC2

#3A5FC2 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.4% C 0.161 H 265.6°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#3A5FC2
RGBrgb(58, 95, 194)
HSLhsl(224, 54%, 49%)
HSVhsv(224, 70%, 76%)
CMYKcmyk(70.1%, 51%, 0%, 23.9%)
CIE-LABlab(42.73, 20.45, -55.78)
CIE-LCHlch(42.73, 59.41, 290.13°)
OKLaboklab(51.36% -0.0123 -0.1603)
OKLCHoklch(51.36% 0.161 265.6)
XYZxyz(15.5713, 12.9774, 52.7127)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FC2 #C29D3A
analogous
#3AA3C2 #3A5FC2 #593AC2
triadic
#3A5FC2 #C23A5F #5FC23A
tetradic
#3A5FC2 #C23AA3 #C29D3A #3AC259
square
#3A5FC2 #C23AA3 #C29D3A #3AC259
split-complementary
#3A5FC2 #C2593A #A3C23A
monochromatic
#1E3164 #2C4893 #3A5FC2 #6784D2 #97ABE0

Accessibility & contrast

On white

5.84
#3A5FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#3A5FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FC2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FC2#FFFFFF#000000##FFFFFF
##3A5FC21.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#226BC6
Deuteranopia (green-blind)
#005FC0
Tritanopia (blue-blind)
#007787
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a5fc2;
/* rgb */ color: rgb(58, 95, 194);
/* oklch */ color: oklch(51.4% 0.161 265.6);
Tailwind
colors: {
  custom: {
    50: '#818bd5',
    500: '#3a5fc2',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fc2;
$custom-light: #818bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fc2",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 223.676,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51358,
    "c": 0.16073,
    "h": 265.6
  },
  "luminance": 0.12979
}

Semantic roles & 50–950 ramp

primary
#3A5FC2
secondary
#CBBA8D
accent
#B54ADD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #3A5FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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