#3A478D#3A478D

#3A478D is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.5% C 0.116 H 272.6°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#3A478D
RGBrgb(58, 71, 141)
HSLhsl(231, 42%, 39%)
HSVhsv(231, 59%, 55%)
CMYKcmyk(58.9%, 49.6%, 0%, 44.7%)
CIE-LABlab(32.54, 17.00, -40.61)
CIE-LCHlch(32.54, 44.03, 292.71°)
OKLaboklab(42.49% 0.0053 -0.116)
OKLCHoklch(42.49% 0.116 272.6)
XYZxyz(8.8043, 7.3284, 26.1447)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A478D #8D803A
analogous
#3A718D #3A478D #573A8D
triadic
#3A478D #8D3A47 #478D3A
tetradic
#3A478D #8D3A71 #8D803A #3A8D57
square
#3A478D #8D3A71 #8D803A #3A8D57
split-complementary
#3A478D #8D573A #718D3A
monochromatic
#161B36 #283162 #3A478D #4E5EB6 #7986C8

Accessibility & contrast

On white

8.52
#3A478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3A478D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A478D
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A478D#FFFFFF#000000##FFFFFF
##3A478D1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255090
Deuteranopia (green-blind)
#18498C
Tritanopia (blue-blind)
#025763
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3a478d;
/* rgb */ color: rgb(58, 71, 141);
/* oklch */ color: oklch(42.5% 0.116 272.6);
Tailwind
colors: {
  custom: {
    50: '#787aaf',
    500: '#3a478d',
    950: '#000000',
  },
}
SCSS
$custom: #3a478d;
$custom-light: #787aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a478d",
  "rgb": {
    "r": 58,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 230.602,
    "s": 41.709,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42487,
    "c": 0.11609,
    "h": 272.6
  },
  "luminance": 0.07329
}

Semantic roles & 50–950 ramp

primary
#3A478D
secondary
#B1A771
accent
#BE56D2
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #3A478D

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

Preview Lab → · Contrast checker → · Palette generator →

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