#3A519C#3A519C

#3A519C is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.7% C 0.125 H 268.3°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#3A519C
RGBrgb(58, 81, 156)
HSLhsl(226, 46%, 42%)
HSVhsv(226, 63%, 61%)
CMYKcmyk(62.8%, 48.1%, 0%, 38.8%)
CIE-LABlab(36.34, 15.74, -43.64)
CIE-LCHlch(36.34, 46.39, 289.83°)
OKLaboklab(45.69% -0.0036 -0.1247)
OKLCHoklch(45.69% 0.125 268.3)
XYZxyz(10.6861, 9.1838, 32.6556)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A519C #9C853A
analogous
#3A829C #3A519C #543A9C
triadic
#3A519C #9C3A51 #519C3A
tetradic
#3A519C #9C3A82 #9C853A #3A9C54
square
#3A519C #9C3A82 #9C853A #3A9C54
split-complementary
#3A519C #9C543A #829C3A
monochromatic
#192343 #293A6F #3A519C #546DBF #8093D0

Accessibility & contrast

On white

7.40
#3A519C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#3A519C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A519C
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A519C#FFFFFF#000000##FFFFFF
##3A519C1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5A9F
Deuteranopia (green-blind)
#1A519A
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3a519c;
/* rgb */ color: rgb(58, 81, 156);
/* oklch */ color: oklch(45.7% 0.125 268.3);
Tailwind
colors: {
  custom: {
    50: '#7a81ba',
    500: '#3a519c',
    950: '#000000',
  },
}
SCSS
$custom: #3a519c;
$custom-light: #7a81ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a519c",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 156
  },
  "hsl": {
    "h": 225.918,
    "s": 45.794,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45686,
    "c": 0.12479,
    "h": 268.3
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#3A519C
secondary
#BAAA78
accent
#B752D5
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #3A519C

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

Preview Lab → · Contrast checker → · Palette generator →

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