#3A40AB#3A40AB

#3A40AB is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.168 H 274.5°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#3A40AB
RGBrgb(58, 64, 171)
HSLhsl(237, 49%, 45%)
HSVhsv(237, 66%, 67%)
CMYKcmyk(66.1%, 62.6%, 0%, 32.9%)
CIE-LABlab(32.93, 32.21, -58.15)
CIE-LCHlch(32.93, 66.47, 298.98°)
OKLaboklab(43.48% 0.0132 -0.1676)
OKLCHoklch(43.48% 0.168 274.5)
XYZxyz(10.9266, 7.5057, 39.3931)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40AB #ABA53A
analogous
#3A79AB #3A40AB #6C3AAB
triadic
#3A40AB #AB3A40 #40AB3A
tetradic
#3A40AB #AB3A79 #ABA53A #3AAB6C
square
#3A40AB #AB3A79 #ABA53A #3AAB6C
split-complementary
#3A40AB #AB6C3A #79AB3A
monochromatic
#1B1E50 #2A2F7D #3A40AB #5B61C7 #898DD7

Accessibility & contrast

On white

8.40
#3A40AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#3A40AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40AB
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40AB#FFFFFF#000000##FFFFFF
##3A40AB1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3a40ab;
/* rgb */ color: rgb(58, 64, 171);
/* oklch */ color: oklch(43.5% 0.168 274.5);
Tailwind
colors: {
  custom: {
    50: '#7e75c5',
    500: '#3a40ab',
    950: '#000000',
  },
}
SCSS
$custom: #3a40ab;
$custom-light: #7e75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40ab",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 236.814,
    "s": 49.345,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43482,
    "c": 0.16812,
    "h": 274.5
  },
  "luminance": 0.07507
}

Semantic roles & 50–950 ramp

primary
#3A40AB
secondary
#C1BE80
accent
#D24FD9
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A40AB

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

Preview Lab → · Contrast checker → · Palette generator →

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