#3A4772#3A4772

#3A4772 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.074 H 270.1°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#3A4772
RGBrgb(58, 71, 114)
HSLhsl(226, 33%, 34%)
HSVhsv(226, 49%, 45%)
CMYKcmyk(49.1%, 37.7%, 0%, 55.3%)
CIE-LABlab(30.93, 7.66, -26.41)
CIE-LCHlch(30.93, 27.50, 286.17°)
OKLaboklab(40.73% 0.0001 -0.0744)
OKLCHoklch(40.73% 0.074 270.1)
XYZxyz(7.0345, 6.6205, 16.8235)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4772 #72653A
analogous
#3A6372 #3A4772 #493A72
triadic
#3A4772 #723A47 #47723A
tetradic
#3A4772 #723A63 #72653A #3A7249
square
#3A4772 #723A63 #72653A #3A7249
split-complementary
#3A4772 #72493A #63723A
monochromatic
#111421 #252E49 #3A4772 #4F609B #7080B6

Accessibility & contrast

On white

9.04
#3A4772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#3A4772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4772
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4772#FFFFFF#000000##FFFFFF
##3A47721.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374B74
Deuteranopia (green-blind)
#324771
Tritanopia (blue-blind)
#255057
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a4772;
/* rgb */ color: rgb(58, 71, 114);
/* oklch */ color: oklch(40.7% 0.074 270.1);
Tailwind
colors: {
  custom: {
    50: '#737a9b',
    500: '#3a4772',
    950: '#000000',
  },
}
SCSS
$custom: #3a4772;
$custom-light: #737a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4772",
  "rgb": {
    "r": 58,
    "g": 71,
    "b": 114
  },
  "hsl": {
    "h": 226.071,
    "s": 32.558,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40725,
    "c": 0.07438,
    "h": 270.1
  },
  "luminance": 0.06621
}

Semantic roles & 50–950 ramp

primary
#3A4772
secondary
#A09368
accent
#B05FC9
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #3A4772

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

Preview Lab → · Contrast checker → · Palette generator →

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