#3A478E#3A478E

#3A478E is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.6% C 0.118 H 272.6°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#3A478E
RGBrgb(58, 71, 142)
HSLhsl(231, 42%, 39%)
HSVhsv(231, 59%, 56%)
CMYKcmyk(59.2%, 50%, 0%, 44.3%)
CIE-LABlab(32.61, 17.35, -41.12)
CIE-LCHlch(32.61, 44.63, 292.87°)
OKLaboklab(42.56% 0.0054 -0.1175)
OKLCHoklch(42.56% 0.118 272.6)
XYZxyz(8.8790, 7.3583, 26.5383)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A478E #8E813A
analogous
#3A718E #3A478E #573A8E
triadic
#3A478E #8E3A47 #478E3A
tetradic
#3A478E #8E3A71 #8E813A #3A8E57
square
#3A478E #8E3A71 #8E813A #3A8E57
split-complementary
#3A478E #8E573A #718E3A
monochromatic
#171C37 #283163 #3A478E #4E5FB7 #7A86C9

Accessibility & contrast

On white

8.50
#3A478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A478E
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A478E#FFFFFF#000000##FFFFFF
##3A478E1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245091
Deuteranopia (green-blind)
#16498C
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3a478e;
/* rgb */ color: rgb(58, 71, 142);
/* oklch */ color: oklch(42.6% 0.118 272.6);
Tailwind
colors: {
  custom: {
    50: '#787aaf',
    500: '#3a478e',
    950: '#000000',
  },
}
SCSS
$custom: #3a478e;
$custom-light: #787aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a478e",
  "rgb": {
    "r": 58,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 230.714,
    "s": 42,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42558,
    "c": 0.11759,
    "h": 272.6
  },
  "luminance": 0.07359
}

Semantic roles & 50–950 ramp

primary
#3A478E
secondary
#B2A872
accent
#BF56D2
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #3A478E

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

Preview Lab → · Contrast checker → · Palette generator →

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