#3A5FA9#3A5FA9

#3A5FA9 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.126 H 262.7°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#3A5FA9
RGBrgb(58, 95, 169)
HSLhsl(220, 49%, 45%)
HSVhsv(220, 66%, 66%)
CMYKcmyk(65.7%, 43.8%, 0%, 33.7%)
CIE-LABlab(41.13, 11.33, -43.71)
CIE-LCHlch(41.13, 45.16, 284.53°)
OKLaboklab(49.62% -0.016 -0.1248)
OKLCHoklch(49.62% 0.126 262.7)
XYZxyz(12.9960, 11.9473, 39.1496)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FA9 #A9843A
analogous
#3A97A9 #3A5FA9 #4D3AA9
triadic
#3A5FA9 #A93A5F #5FA93A
tetradic
#3A5FA9 #A93A97 #A9843A #3AA94D
square
#3A5FA9 #A93A97 #A9843A #3AA94D
split-complementary
#3A5FA9 #A94D3A #97A93A
monochromatic
#1B2C4E #2A457B #3A5FA9 #5A7EC6 #87A2D6

Accessibility & contrast

On white

6.20
#3A5FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#3A5FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FA9
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FA9#FFFFFF#000000##FFFFFF
##3A5FA91.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C66AC
Deuteranopia (green-blind)
#2A5CA7
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3a5fa9;
/* rgb */ color: rgb(58, 95, 169);
/* oklch */ color: oklch(49.6% 0.126 262.7);
Tailwind
colors: {
  custom: {
    50: '#7c8bc3',
    500: '#3a5fa9',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fa9;
$custom-light: #7c8bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fa9",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 169
  },
  "hsl": {
    "h": 220,
    "s": 48.899,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49624,
    "c": 0.12578,
    "h": 262.7
  },
  "luminance": 0.11949
}

Semantic roles & 50–950 ramp

primary
#3A5FA9
secondary
#C0AA7F
accent
#AB4FD8
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #3A5FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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