#3A5397#3A5397

#3A5397 is a mid, moderate blue. Relative luminance 0.093; OKLCH L 45.8% C 0.115 H 266.7°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#3A5397
RGBrgb(58, 83, 151)
HSLhsl(224, 44%, 41%)
HSVhsv(224, 62%, 59%)
CMYKcmyk(61.6%, 45%, 0%, 40.8%)
CIE-LABlab(36.59, 12.63, -40.22)
CIE-LCHlch(36.59, 42.15, 287.43°)
OKLaboklab(45.78% -0.0066 -0.1146)
OKLCHoklch(45.78% 0.115 266.7)
XYZxyz(10.4222, 9.3195, 30.5218)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5397 #977E3A
analogous
#3A8197 #3A5397 #4F3A97
triadic
#3A5397 #973A53 #53973A
tetradic
#3A5397 #973A81 #977E3A #3A974F
square
#3A5397 #973A81 #977E3A #3A974F
split-complementary
#3A5397 #974F3A #81973A
monochromatic
#18223F #293B6B #3A5397 #526EBC #7E93CD

Accessibility & contrast

On white

7.33
#3A5397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#3A5397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5397
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5397#FFFFFF#000000##FFFFFF
##3A53971.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345B9A
Deuteranopia (green-blind)
#265296
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3a5397;
/* rgb */ color: rgb(58, 83, 151);
/* oklch */ color: oklch(45.8% 0.115 266.7);
Tailwind
colors: {
  custom: {
    50: '#7983b6',
    500: '#3a5397',
    950: '#000000',
  },
}
SCSS
$custom: #3a5397;
$custom-light: #7983b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5397",
  "rgb": {
    "r": 58,
    "g": 83,
    "b": 151
  },
  "hsl": {
    "h": 223.871,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45781,
    "c": 0.11484,
    "h": 266.7
  },
  "luminance": 0.0932
}

Semantic roles & 50–950 ramp

primary
#3A5397
secondary
#B7A576
accent
#B254D4
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #3A5397

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

Preview Lab → · Contrast checker → · Palette generator →

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