#3A40C7#3A40C7

#3A40C7 is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.0% C 0.205 H 273.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#3A40C7
RGBrgb(58, 64, 199)
HSLhsl(237, 56%, 50%)
HSVhsv(237, 71%, 78%)
CMYKcmyk(70.9%, 67.8%, 0%, 22%)
CIE-LABlab(35.38, 41.87, -70.67)
CIE-LCHlch(35.38, 82.14, 300.65°)
OKLaboklab(46.02% 0.011 -0.2043)
OKLCHoklch(46.02% 0.205 273.1)
XYZxyz(13.8837, 8.6885, 54.9671)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40C7 #C7C13A
analogous
#3A86C7 #3A40C7 #7B3AC7
triadic
#3A40C7 #C73A40 #40C73A
tetradic
#3A40C7 #C73A86 #C7C13A #3AC77B
square
#3A40C7 #C73A86 #C7C13A #3AC77B
split-complementary
#3A40C7 #C77B3A #86C73A
monochromatic
#1E2169 #2B3098 #3A40C7 #6A6ED5 #999CE2

Accessibility & contrast

On white

7.67
#3A40C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#3A40C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40C7
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40C7#FFFFFF#000000##FFFFFF
##3A40C71.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#004DC4
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a40c7;
/* rgb */ color: rgb(58, 64, 199);
/* oklch */ color: oklch(46.0% 0.205 273.1);
Tailwind
colors: {
  custom: {
    50: '#8475d9',
    500: '#3a40c7',
    950: '#000000',
  },
}
SCSS
$custom: #3a40c7;
$custom-light: #8475d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40c7",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 237.447,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46018,
    "c": 0.20457,
    "h": 273.1
  },
  "luminance": 0.0869
}

Semantic roles & 50–950 ramp

primary
#3A40C7
secondary
#CECB8F
accent
#D949DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3A40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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