#3A4E8E#3A4E8E

#3A4E8E is a dark, moderate blue. Relative luminance 0.083; OKLCH L 44.1% C 0.108 H 268.6°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#3A4E8E
RGBrgb(58, 78, 142)
HSLhsl(226, 42%, 39%)
HSVhsv(226, 59%, 56%)
CMYKcmyk(59.2%, 45.1%, 0%, 44.3%)
CIE-LABlab(34.60, 12.71, -37.93)
CIE-LCHlch(34.60, 40.00, 288.52°)
OKLaboklab(44.08% -0.0026 -0.108)
OKLCHoklch(44.08% 0.108 268.6)
XYZxyz(9.3502, 8.3006, 26.6954)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4E8E #8E7A3A
analogous
#3A788E #3A4E8E #503A8E
triadic
#3A4E8E #8E3A4E #4E8E3A
tetradic
#3A4E8E #8E3A78 #8E7A3A #3A8E50
square
#3A4E8E #8E3A78 #8E7A3A #3A8E50
split-complementary
#3A4E8E #8E503A #788E3A
monochromatic
#171E37 #283663 #3A4E8E #4E67B7 #7A8DC9

Accessibility & contrast

On white

7.89
#3A4E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3A4E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4E8E
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4E8E#FFFFFF#000000##FFFFFF
##3A4E8E1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315590
Deuteranopia (green-blind)
#264E8D
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a4e8e;
/* rgb */ color: rgb(58, 78, 142);
/* oklch */ color: oklch(44.1% 0.108 268.6);
Tailwind
colors: {
  custom: {
    50: '#777faf',
    500: '#3a4e8e',
    950: '#000000',
  },
}
SCSS
$custom: #3a4e8e;
$custom-light: #777faf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4e8e",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 142
  },
  "hsl": {
    "h": 225.714,
    "s": 42,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44077,
    "c": 0.10804,
    "h": 268.6
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#3A4E8E
secondary
#B2A372
accent
#B456D2
background
#F7F7FA
surface
#EEEEF4
border
#C9C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #3A4E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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