#3A519E#3A519E

#3A519E is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.8% C 0.128 H 268.5°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#3A519E
RGBrgb(58, 81, 158)
HSLhsl(226, 46%, 42%)
HSVhsv(226, 63%, 62%)
CMYKcmyk(63.3%, 48.7%, 0%, 38%)
CIE-LABlab(36.47, 16.46, -44.63)
CIE-LCHlch(36.47, 47.57, 290.24°)
OKLaboklab(45.83% -0.0034 -0.1277)
OKLCHoklch(45.83% 0.128 268.5)
XYZxyz(10.8568, 9.2521, 33.5548)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A519E #9E873A
analogous
#3A839E #3A519E #553A9E
triadic
#3A519E #9E3A51 #519E3A
tetradic
#3A519E #9E3A83 #9E873A #3A9E55
square
#3A519E #9E3A83 #9E873A #3A9E55
split-complementary
#3A519E #9E553A #839E3A
monochromatic
#192344 #2A3A71 #3A519E #556EC0 #8194D1

Accessibility & contrast

On white

7.37
#3A519E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#3A519E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A519E
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A519E#FFFFFF#000000##FFFFFF
##3A519E1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5BA1
Deuteranopia (green-blind)
#17529C
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3a519e;
/* rgb */ color: rgb(58, 81, 158);
/* oklch */ color: oklch(45.8% 0.128 268.5);
Tailwind
colors: {
  custom: {
    50: '#7a81bb',
    500: '#3a519e',
    950: '#000000',
  },
}
SCSS
$custom: #3a519e;
$custom-light: #7a81bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a519e",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 158
  },
  "hsl": {
    "h": 226.2,
    "s": 46.296,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45826,
    "c": 0.1277,
    "h": 268.5
  },
  "luminance": 0.09253
}

Semantic roles & 50–950 ramp

primary
#3A519E
secondary
#BBAC79
accent
#B852D6
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3A519E

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

Preview Lab → · Contrast checker → · Palette generator →

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