#3A5FAC#3A5FAC

#3A5FAC is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.8% C 0.130 H 263.2°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#3A5FAC
RGBrgb(58, 95, 172)
HSLhsl(221, 50%, 45%)
HSVhsv(221, 66%, 67%)
CMYKcmyk(66.3%, 44.8%, 0%, 32.5%)
CIE-LABlab(41.31, 12.42, -45.20)
CIE-LCHlch(41.31, 46.87, 285.36°)
OKLaboklab(49.82% -0.0155 -0.1291)
OKLCHoklch(49.82% 0.13 263.2)
XYZxyz(13.2809, 12.0612, 40.6499)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FAC #AC873A
analogous
#3A98AC #3A5FAC #4E3AAC
triadic
#3A5FAC #AC3A5F #5FAC3A
tetradic
#3A5FAC #AC3A98 #AC873A #3AAC4E
square
#3A5FAC #AC3A98 #AC873A #3AAC4E
split-complementary
#3A5FAC #AC4E3A #98AC3A
monochromatic
#1B2C50 #2B467E #3A5FAC #5B7FC8 #89A2D7

Accessibility & contrast

On white

6.15
#3A5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#3A5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FAC
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FAC#FFFFFF#000000##FFFFFF
##3A5FAC1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A67AF
Deuteranopia (green-blind)
#275DAA
Tritanopia (blue-blind)
#00717D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3a5fac;
/* rgb */ color: rgb(58, 95, 172);
/* oklch */ color: oklch(49.8% 0.130 263.2);
Tailwind
colors: {
  custom: {
    50: '#7c8bc5',
    500: '#3a5fac',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fac;
$custom-light: #7c8bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fac",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 220.526,
    "s": 49.565,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49822,
    "c": 0.13003,
    "h": 263.2
  },
  "luminance": 0.12063
}

Semantic roles & 50–950 ramp

primary
#3A5FAC
secondary
#C2AC80
accent
#AC4FD9
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3A5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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