#3A4872#3A4872

#3A4872 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.073 H 269.0°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#3A4872
RGBrgb(58, 72, 114)
HSLhsl(225, 33%, 34%)
HSVhsv(225, 49%, 45%)
CMYKcmyk(49.1%, 36.8%, 0%, 55.3%)
CIE-LABlab(31.23, 6.99, -25.94)
CIE-LCHlch(31.23, 26.86, 285.09°)
OKLaboklab(40.96% -0.0012 -0.073)
OKLCHoklch(40.96% 0.073 269)
XYZxyz(7.0986, 6.7488, 16.8449)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4872 #72643A
analogous
#3A6472 #3A4872 #483A72
triadic
#3A4872 #723A48 #48723A
tetradic
#3A4872 #723A64 #72643A #3A7248
square
#3A4872 #723A64 #72643A #3A7248
split-complementary
#3A4872 #72483A #64723A
monochromatic
#111521 #252E49 #3A4872 #4F629B #7082B6

Accessibility & contrast

On white

8.94
#3A4872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#3A4872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4872
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4872#FFFFFF#000000##FFFFFF
##3A48721.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384C74
Deuteranopia (green-blind)
#334771
Tritanopia (blue-blind)
#245157
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a4872;
/* rgb */ color: rgb(58, 72, 114);
/* oklch */ color: oklch(41.0% 0.073 269.0);
Tailwind
colors: {
  custom: {
    50: '#737a9b',
    500: '#3a4872',
    950: '#000000',
  },
}
SCSS
$custom: #3a4872;
$custom-light: #737a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4872",
  "rgb": {
    "r": 58,
    "g": 72,
    "b": 114
  },
  "hsl": {
    "h": 225,
    "s": 32.558,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40958,
    "c": 0.07301,
    "h": 269
  },
  "luminance": 0.06749
}

Semantic roles & 50–950 ramp

primary
#3A4872
secondary
#A09268
accent
#AE5FC9
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #3A4872

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

Preview Lab → · Contrast checker → · Palette generator →

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