#3A508D#3A508D

#3A508D is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.5% C 0.104 H 267.2°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#3A508D
RGBrgb(58, 80, 141)
HSLhsl(224, 42%, 39%)
HSVhsv(224, 59%, 55%)
CMYKcmyk(58.9%, 43.3%, 0%, 44.7%)
CIE-LABlab(35.12, 11.03, -36.49)
CIE-LCHlch(35.12, 38.13, 286.82°)
OKLaboklab(44.46% -0.0051 -0.1038)
OKLCHoklch(44.46% 0.104 267.2)
XYZxyz(9.4197, 8.5592, 26.3498)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A508D #8D773A
analogous
#3A7A8D #3A508D #4E3A8D
triadic
#3A508D #8D3A50 #508D3A
tetradic
#3A508D #8D3A7A #8D773A #3A8D4E
square
#3A508D #8D3A7A #8D773A #3A8D4E
split-complementary
#3A508D #8D4E3A #7A8D3A
monochromatic
#161F36 #283762 #3A508D #4E6AB6 #798EC8

Accessibility & contrast

On white

7.74
#3A508D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3A508D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A508D
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A508D#FFFFFF#000000##FFFFFF
##3A508D1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36578F
Deuteranopia (green-blind)
#2B4F8C
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a508d;
/* rgb */ color: rgb(58, 80, 141);
/* oklch */ color: oklch(44.5% 0.104 267.2);
Tailwind
colors: {
  custom: {
    50: '#7780af',
    500: '#3a508d',
    950: '#000000',
  },
}
SCSS
$custom: #3a508d;
$custom-light: #7780af;
$custom-dark: #000000;
JSON
{
  "hex": "#3a508d",
  "rgb": {
    "r": 58,
    "g": 80,
    "b": 141
  },
  "hsl": {
    "h": 224.096,
    "s": 41.709,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44456,
    "c": 0.10389,
    "h": 267.2
  },
  "luminance": 0.0856
}

Semantic roles & 50–950 ramp

primary
#3A508D
secondary
#B1A071
accent
#B156D2
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #3A508D

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

Preview Lab → · Contrast checker → · Palette generator →

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