#3A509E#3A509E

#3A509E is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.6% C 0.129 H 269.0°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#3A509E
RGBrgb(58, 80, 158)
HSLhsl(227, 46%, 42%)
HSVhsv(227, 63%, 62%)
CMYKcmyk(63.3%, 49.4%, 0%, 38%)
CIE-LABlab(36.18, 17.11, -45.08)
CIE-LCHlch(36.18, 48.22, 290.79°)
OKLaboklab(45.61% -0.0023 -0.129)
OKLCHoklch(45.61% 0.129 269)
XYZxyz(10.7830, 9.1046, 33.5302)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A509E #9E883A
analogous
#3A829E #3A509E #563A9E
triadic
#3A509E #9E3A50 #509E3A
tetradic
#3A509E #9E3A82 #9E883A #3A9E56
square
#3A509E #9E3A82 #9E883A #3A9E56
split-complementary
#3A509E #9E563A #829E3A
monochromatic
#192344 #2A3971 #3A509E #556CC0 #8193D1

Accessibility & contrast

On white

7.44
#3A509E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#3A509E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A509E
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A509E#FFFFFF#000000##FFFFFF
##3A509E1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285AA1
Deuteranopia (green-blind)
#13519C
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3a509e;
/* rgb */ color: rgb(58, 80, 158);
/* oklch */ color: oklch(45.6% 0.129 269.0);
Tailwind
colors: {
  custom: {
    50: '#7a80bb',
    500: '#3a509e',
    950: '#000000',
  },
}
SCSS
$custom: #3a509e;
$custom-light: #7a80bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a509e",
  "rgb": {
    "r": 58,
    "g": 80,
    "b": 158
  },
  "hsl": {
    "h": 226.8,
    "s": 46.296,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45613,
    "c": 0.12902,
    "h": 269
  },
  "luminance": 0.09105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A509E

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

Preview Lab → · Contrast checker → · Palette generator →

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