#3A4E8A#3A4E8A

#3A4E8A is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.8% C 0.102 H 268.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#3A4E8A
RGBrgb(58, 78, 138)
HSLhsl(225, 41%, 38%)
HSVhsv(225, 58%, 54%)
CMYKcmyk(58%, 43.5%, 0%, 45.9%)
CIE-LABlab(34.36, 11.29, -35.87)
CIE-LCHlch(34.36, 37.61, 287.47°)
OKLaboklab(43.81% -0.0033 -0.102)
OKLCHoklch(43.81% 0.102 268.1)
XYZxyz(9.0552, 8.1826, 25.1421)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4E8A #8A763A
analogous
#3A768A #3A4E8A #4E3A8A
triadic
#3A4E8A #8A3A4E #4E8A3A
tetradic
#3A4E8A #8A3A76 #8A763A #3A8A4E
square
#3A4E8A #8A3A76 #8A763A #3A8A4E
split-complementary
#3A4E8A #8A4E3A #768A3A
monochromatic
#161D34 #28365F #3A4E8A #4D67B4 #788CC6

Accessibility & contrast

On white

7.96
#3A4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3A4E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4E8A
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4E8A#FFFFFF#000000##FFFFFF
##3A4E8A1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558C
Deuteranopia (green-blind)
#2A4D89
Tritanopia (blue-blind)
#065B65
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a4e8a;
/* rgb */ color: rgb(58, 78, 138);
/* oklch */ color: oklch(43.8% 0.102 268.1);
Tailwind
colors: {
  custom: {
    50: '#777fac',
    500: '#3a4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #3a4e8a;
$custom-light: #777fac;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4e8a",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 225,
    "s": 40.816,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43814,
    "c": 0.10201,
    "h": 268.1
  },
  "luminance": 0.08183
}

Semantic roles & 50–950 ramp

primary
#3A4E8A
secondary
#B0A070
accent
#B257D1
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #3A4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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