#3A40C5#3A40C5

#3A40C5 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 45.8% C 0.202 H 273.2°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#3A40C5
RGBrgb(58, 64, 197)
HSLhsl(237, 55%, 50%)
HSVhsv(237, 71%, 77%)
CMYKcmyk(70.6%, 67.5%, 0%, 22.7%)
CIE-LABlab(35.19, 41.19, -69.80)
CIE-LCHlch(35.19, 81.05, 300.55°)
OKLaboklab(45.83% 0.0112 -0.2017)
OKLCHoklch(45.83% 0.202 273.2)
XYZxyz(13.6530, 8.5962, 53.7522)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40C5 #C5BF3A
analogous
#3A86C5 #3A40C5 #793AC5
triadic
#3A40C5 #C53A40 #40C53A
tetradic
#3A40C5 #C53A86 #C5BF3A #3AC579
square
#3A40C5 #C53A86 #C5BF3A #3AC579
split-complementary
#3A40C5 #C5793A #86C53A
monochromatic
#1E2166 #2C3196 #3A40C5 #696ED3 #999CE1

Accessibility & contrast

On white

7.72
#3A40C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3A40C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40C5
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40C5#FFFFFF#000000##FFFFFF
##3A40C51.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#004CC3
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a40c5;
/* rgb */ color: rgb(58, 64, 197);
/* oklch */ color: oklch(45.8% 0.202 273.2);
Tailwind
colors: {
  custom: {
    50: '#8375d8',
    500: '#3a40c5',
    950: '#000000',
  },
}
SCSS
$custom: #3a40c5;
$custom-light: #8375d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40c5",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 237.41,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.45831,
    "c": 0.20205,
    "h": 273.2
  },
  "luminance": 0.08598
}

Semantic roles & 50–950 ramp

primary
#3A40C5
secondary
#CDCA8E
accent
#D74ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3A40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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