#3A5F97#3A5F97

#3A5F97 is a mid, moderate blue. Relative luminance 0.113; OKLCH L 48.5% C 0.100 H 258.5°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#3A5F97
RGBrgb(58, 95, 151)
HSLhsl(216, 44%, 41%)
HSVhsv(216, 62%, 59%)
CMYKcmyk(61.6%, 37.1%, 0%, 40.8%)
CIE-LABlab(40.11, 4.88, -34.63)
CIE-LCHlch(40.11, 34.97, 278.02°)
OKLaboklab(48.5% -0.02 -0.0981)
OKLCHoklch(48.5% 0.1 258.5)
XYZxyz(11.4211, 11.3173, 30.8547)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5F97 #97723A
analogous
#3A8D97 #3A5F97 #433A97
triadic
#3A5F97 #973A5F #5F973A
tetradic
#3A5F97 #973A8D #97723A #3A9743
square
#3A5F97 #973A8D #97723A #3A9743
split-complementary
#3A5F97 #97433A #8D973A
monochromatic
#18273F #29436B #3A5F97 #527CBC #7E9ECD

Accessibility & contrast

On white

6.43
#3A5F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#3A5F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5F97
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5F97#FFFFFF#000000##FFFFFF
##3A5F971.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476399
Deuteranopia (green-blind)
#3B5B96
Tritanopia (blue-blind)
#006C74
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3a5f97;
/* rgb */ color: rgb(58, 95, 151);
/* oklch */ color: oklch(48.5% 0.100 258.5);
Tailwind
colors: {
  custom: {
    50: '#798cb6',
    500: '#3a5f97',
    950: '#000000',
  },
}
SCSS
$custom: #3a5f97;
$custom-light: #798cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5f97",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 151
  },
  "hsl": {
    "h": 216.129,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48499,
    "c": 0.10016,
    "h": 258.5
  },
  "luminance": 0.11318
}

Semantic roles & 50–950 ramp

primary
#3A5F97
secondary
#B79D76
accent
#A154D4
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0C11
muted
#7C7D80

Preview Lab

Preview with #3A5F97

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

Preview Lab → · Contrast checker → · Palette generator →

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