#3A4178#3A4178

#3A4178 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.7% C 0.093 H 275.9°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#3A4178
RGBrgb(58, 65, 120)
HSLhsl(233, 35%, 35%)
HSVhsv(233, 52%, 47%)
CMYKcmyk(51.7%, 45.8%, 0%, 52.9%)
CIE-LABlab(29.50, 13.69, -32.44)
CIE-LCHlch(29.50, 35.21, 292.89°)
OKLaboklab(39.74% 0.0095 -0.092)
OKLCHoklch(39.74% 0.093 275.9)
XYZxyz(7.0243, 6.0358, 18.5605)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4178 #78713A
analogous
#3A6078 #3A4178 #523A78
triadic
#3A4178 #783A41 #41783A
tetradic
#3A4178 #783A60 #78713A #3A7852
square
#3A4178 #783A60 #78713A #3A7852
split-complementary
#3A4178 #78523A #60783A
monochromatic
#121425 #262B4F #3A4178 #4E57A1 #727ABB

Accessibility & contrast

On white

9.51
#3A4178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3A4178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4178
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4178#FFFFFF#000000##FFFFFF
##3A41781.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A487A
Deuteranopia (green-blind)
#254377
Tritanopia (blue-blind)
#214D56
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3a4178;
/* rgb */ color: rgb(58, 65, 120);
/* oklch */ color: oklch(39.7% 0.093 275.9);
Tailwind
colors: {
  custom: {
    50: '#74759f',
    500: '#3a4178',
    950: '#000000',
  },
}
SCSS
$custom: #3a4178;
$custom-light: #74759f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4178",
  "rgb": {
    "r": 58,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 233.226,
    "s": 34.831,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39744,
    "c": 0.09252,
    "h": 275.9
  },
  "luminance": 0.06036
}

Semantic roles & 50–950 ramp

primary
#3A4178
secondary
#A49E6A
accent
#BE5DCB
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #3A4178

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

Preview Lab → · Contrast checker → · Palette generator →

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