#3A40AF#3A40AF

#3A40AF is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.8% C 0.173 H 274.3°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#3A40AF
RGBrgb(58, 64, 175)
HSLhsl(237, 50%, 46%)
HSVhsv(237, 67%, 69%)
CMYKcmyk(66.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(33.27, 33.60, -59.99)
CIE-LCHlch(33.27, 68.76, 299.26°)
OKLaboklab(43.83% 0.013 -0.173)
OKLCHoklch(43.83% 0.173 274.3)
XYZxyz(11.3136, 7.6605, 41.4315)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40AF #AFA93A
analogous
#3A7AAF #3A40AF #6E3AAF
triadic
#3A40AF #AF3A40 #40AF3A
tetradic
#3A40AF #AF3A7A #AFA93A #3AAF6E
square
#3A40AF #AF3A7A #AFA93A #3AAF6E
split-complementary
#3A40AF #AF6E3A #7AAF3A
monochromatic
#1C1E53 #2B2F81 #3A40AF #5D62C9 #8B8FD9

Accessibility & contrast

On white

8.29
#3A40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3A40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40AF
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40AF#FFFFFF#000000##FFFFFF
##3A40AF1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3a40af;
/* rgb */ color: rgb(58, 64, 175);
/* oklch */ color: oklch(43.8% 0.173 274.3);
Tailwind
colors: {
  custom: {
    50: '#7f75c8',
    500: '#3a40af',
    950: '#000000',
  },
}
SCSS
$custom: #3a40af;
$custom-light: #7f75c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40af",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 236.923,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43831,
    "c": 0.17349,
    "h": 274.3
  },
  "luminance": 0.07661
}

Semantic roles & 50–950 ramp

primary
#3A40AF
secondary
#C3C082
accent
#D34EDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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