#3A4C8F#3A4C8F

#3A4C8F is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.7% C 0.112 H 269.9°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#3A4C8F
RGBrgb(58, 76, 143)
HSLhsl(227, 42%, 39%)
HSVhsv(227, 59%, 56%)
CMYKcmyk(59.4%, 46.9%, 0%, 43.9%)
CIE-LABlab(34.09, 14.38, -39.36)
CIE-LCHlch(34.09, 41.91, 290.07°)
OKLaboklab(43.71% -0.0001 -0.1122)
OKLCHoklch(43.71% 0.112 269.9)
XYZxyz(9.2856, 8.0509, 27.0459)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4C8F #8F7D3A
analogous
#3A778F #3A4C8F #533A8F
triadic
#3A4C8F #8F3A4C #4C8F3A
tetradic
#3A4C8F #8F3A77 #8F7D3A #3A8F53
square
#3A4C8F #8F3A77 #8F7D3A #3A8F53
split-complementary
#3A4C8F #8F533A #778F3A
monochromatic
#171E38 #283563 #3A4C8F #4F65B7 #7A8BC9

Accessibility & contrast

On white

8.04
#3A4C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3A4C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4C8F
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4C8F#FFFFFF#000000##FFFFFF
##3A4C8F1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5492
Deuteranopia (green-blind)
#214D8E
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3a4c8f;
/* rgb */ color: rgb(58, 76, 143);
/* oklch */ color: oklch(43.7% 0.112 269.9);
Tailwind
colors: {
  custom: {
    50: '#787db0',
    500: '#3a4c8f',
    950: '#000000',
  },
}
SCSS
$custom: #3a4c8f;
$custom-light: #787db0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4c8f",
  "rgb": {
    "r": 58,
    "g": 76,
    "b": 143
  },
  "hsl": {
    "h": 227.294,
    "s": 42.289,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43705,
    "c": 0.11223,
    "h": 269.9
  },
  "luminance": 0.08052
}

Semantic roles & 50–950 ramp

primary
#3A4C8F
secondary
#B3A572
accent
#B856D2
background
#F7F7FA
surface
#EEEEF5
border
#C9C9CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #3A4C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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