#3A4E8B#3A4E8B

#3A4E8B is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.9% C 0.104 H 268.3°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#3A4E8B
RGBrgb(58, 78, 139)
HSLhsl(225, 41%, 39%)
HSVhsv(225, 58%, 55%)
CMYKcmyk(58.3%, 43.9%, 0%, 45.5%)
CIE-LABlab(34.42, 11.64, -36.39)
CIE-LCHlch(34.42, 38.21, 287.75°)
OKLaboklab(43.88% -0.0031 -0.1035)
OKLCHoklch(43.88% 0.104 268.3)
XYZxyz(9.1280, 8.2117, 25.5251)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4E8B #8B773A
analogous
#3A768B #3A4E8B #4E3A8B
triadic
#3A4E8B #8B3A4E #4E8B3A
tetradic
#3A4E8B #8B3A76 #8B773A #3A8B4E
square
#3A4E8B #8B3A76 #8B773A #3A8B4E
split-complementary
#3A4E8B #8B4E3A #768B3A
monochromatic
#161E35 #283660 #3A4E8B #4D67B5 #798CC7

Accessibility & contrast

On white

7.95
#3A4E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A4E8B
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4E8B#FFFFFF#000000##FFFFFF
##3A4E8B1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558D
Deuteranopia (green-blind)
#294E8A
Tritanopia (blue-blind)
#045B65
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a4e8b;
/* rgb */ color: rgb(58, 78, 139);
/* oklch */ color: oklch(43.9% 0.104 268.3);
Tailwind
colors: {
  custom: {
    50: '#777fad',
    500: '#3a4e8b',
    950: '#000000',
  },
}
SCSS
$custom: #3a4e8b;
$custom-light: #777fad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4e8b",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 139
  },
  "hsl": {
    "h": 225.185,
    "s": 41.117,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43879,
    "c": 0.10353,
    "h": 268.3
  },
  "luminance": 0.08212
}

Semantic roles & 50–950 ramp

primary
#3A4E8B
secondary
#B0A171
accent
#B357D1
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #3A4E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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