#3A40A4#3A40A4

#3A40A4 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.159 H 274.9°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#3A40A4
RGBrgb(58, 64, 164)
HSLhsl(237, 48%, 44%)
HSVhsv(237, 65%, 64%)
CMYKcmyk(64.6%, 61%, 0%, 35.7%)
CIE-LABlab(32.36, 29.75, -54.88)
CIE-LCHlch(32.36, 62.43, 298.46°)
OKLaboklab(42.88% 0.0135 -0.158)
OKLCHoklch(42.88% 0.159 274.9)
XYZxyz(10.2770, 7.2458, 35.9718)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40A4 #A49E3A
analogous
#3A75A4 #3A40A4 #693AA4
triadic
#3A40A4 #A43A40 #40A43A
tetradic
#3A40A4 #A43A75 #A49E3A #3AA469
square
#3A40A4 #A43A75 #A49E3A #3AA469
split-complementary
#3A40A4 #A4693A #75A43A
monochromatic
#1A1D4A #2A2E77 #3A40A4 #575EC4 #8589D4

Accessibility & contrast

On white

8.57
#3A40A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3A40A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40A4
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40A4#FFFFFF#000000##FFFFFF
##3A40A41.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a40a4;
/* rgb */ color: rgb(58, 64, 164);
/* oklch */ color: oklch(42.9% 0.159 274.9);
Tailwind
colors: {
  custom: {
    50: '#7c75c0',
    500: '#3a40a4',
    950: '#000000',
  },
}
SCSS
$custom: #3a40a4;
$custom-light: #7c75c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40a4",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 236.604,
    "s": 47.748,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42883,
    "c": 0.15858,
    "h": 274.9
  },
  "luminance": 0.07247
}

Semantic roles & 50–950 ramp

primary
#3A40A4
secondary
#BEBA7C
accent
#D050D7
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3A40A4

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

Preview Lab → · Contrast checker → · Palette generator →

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