#3A5FA2#3A5FA2

#3A5FA2 is a mid, moderate blue. Relative luminance 0.117; OKLCH L 49.2% C 0.116 H 261.3°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#3A5FA2
RGBrgb(58, 95, 162)
HSLhsl(219, 47%, 43%)
HSVhsv(219, 64%, 64%)
CMYKcmyk(64.2%, 41.4%, 0%, 36.5%)
CIE-LABlab(40.72, 8.80, -40.22)
CIE-LCHlch(40.72, 41.17, 282.35°)
OKLaboklab(49.17% -0.0174 -0.1145)
OKLCHoklch(49.17% 0.116 261.3)
XYZxyz(12.3564, 11.6915, 35.7809)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FA2 #A27D3A
analogous
#3A93A2 #3A5FA2 #493AA2
triadic
#3A5FA2 #A23A5F #5FA23A
tetradic
#3A5FA2 #A23A93 #A27D3A #3AA249
square
#3A5FA2 #A23A93 #A27D3A #3AA249
split-complementary
#3A5FA2 #A2493A #93A23A
monochromatic
#1A2A48 #2A4575 #3A5FA2 #577DC3 #84A0D3

Accessibility & contrast

On white

6.29
#3A5FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#3A5FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FA2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FA2#FFFFFF#000000##FFFFFF
##3A5FA21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4165A5
Deuteranopia (green-blind)
#325CA1
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #3a5fa2;
/* rgb */ color: rgb(58, 95, 162);
/* oklch */ color: oklch(49.2% 0.116 261.3);
Tailwind
colors: {
  custom: {
    50: '#7a8cbe',
    500: '#3a5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fa2;
$custom-light: #7a8cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fa2",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 218.654,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49173,
    "c": 0.11582,
    "h": 261.3
  },
  "luminance": 0.11693
}

Semantic roles & 50–950 ramp

primary
#3A5FA2
secondary
#BDA57B
accent
#A751D7
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #3A5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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