#3A40C4#3A40C4

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

Color values

HEX#3A40C4
RGBrgb(58, 64, 196)
HSLhsl(237, 54%, 50%)
HSVhsv(237, 70%, 77%)
CMYKcmyk(70.4%, 67.3%, 0%, 23.1%)
CIE-LABlab(35.10, 40.85, -69.37)
CIE-LCHlch(35.10, 80.50, 300.49°)
OKLaboklab(45.74% 0.0113 -0.2005)
OKLCHoklch(45.74% 0.201 273.2)
XYZxyz(13.5388, 8.5505, 53.1508)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40C4 #C4BE3A
analogous
#3A85C4 #3A40C4 #793AC4
triadic
#3A40C4 #C43A40 #40C43A
tetradic
#3A40C4 #C43A85 #C4BE3A #3AC479
square
#3A40C4 #C43A85 #C4BE3A #3AC479
split-complementary
#3A40C4 #C4793A #85C43A
monochromatic
#1E2166 #2C3195 #3A40C4 #696DD3 #989BE0

Accessibility & contrast

On white

7.75
#3A40C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3A40C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40C4
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40C4#FFFFFF#000000##FFFFFF
##3A40C41.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#004CC2
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a40c4;
/* rgb */ color: rgb(58, 64, 196);
/* oklch */ color: oklch(45.7% 0.201 273.2);
Tailwind
colors: {
  custom: {
    50: '#8375d7',
    500: '#3a40c4',
    950: '#000000',
  },
}
SCSS
$custom: #3a40c4;
$custom-light: #8375d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40c4",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 237.391,
    "s": 54.331,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45737,
    "c": 0.20079,
    "h": 273.2
  },
  "luminance": 0.08552
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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