#3A40B5#3A40B5

#3A40B5 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.181 H 274.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#3A40B5
RGBrgb(58, 64, 181)
HSLhsl(237, 51%, 47%)
HSVhsv(237, 68%, 71%)
CMYKcmyk(68%, 64.6%, 0%, 29%)
CIE-LABlab(33.78, 35.69, -62.72)
CIE-LCHlch(33.78, 72.16, 299.64°)
OKLaboklab(44.36% 0.0126 -0.181)
OKLCHoklch(44.36% 0.181 274)
XYZxyz(11.9160, 7.9014, 44.6043)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40B5 #B5AF3A
analogous
#3A7EB5 #3A40B5 #723AB5
triadic
#3A40B5 #B53A40 #40B53A
tetradic
#3A40B5 #B53A7E #B5AF3A #3AB572
square
#3A40B5 #B53A7E #B5AF3A #3AB572
split-complementary
#3A40B5 #B5723A #7EB53A
monochromatic
#1C1F58 #2B3087 #3A40B5 #6065CC #8E92DB

Accessibility & contrast

On white

8.14
#3A40B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#3A40B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40B5
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40B5#FFFFFF#000000##FFFFFF
##3A40B51.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a40b5;
/* rgb */ color: rgb(58, 64, 181);
/* oklch */ color: oklch(44.4% 0.181 274.0);
Tailwind
colors: {
  custom: {
    50: '#8075cc',
    500: '#3a40b5',
    950: '#000000',
  },
}
SCSS
$custom: #3a40b5;
$custom-light: #8075cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40b5",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 237.073,
    "s": 51.464,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44364,
    "c": 0.18144,
    "h": 274
  },
  "luminance": 0.07903
}

Semantic roles & 50–950 ramp

primary
#3A40B5
secondary
#C6C385
accent
#D44DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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