#3A40B4#3A40B4

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

Color values

HEX#3A40B4
RGBrgb(58, 64, 180)
HSLhsl(237, 51%, 47%)
HSVhsv(237, 68%, 71%)
CMYKcmyk(67.8%, 64.4%, 0%, 29.4%)
CIE-LABlab(33.69, 35.34, -62.26)
CIE-LCHlch(33.69, 71.60, 299.58°)
OKLaboklab(44.27% 0.0127 -0.1797)
OKLCHoklch(44.27% 0.18 274)
XYZxyz(11.8138, 7.8605, 44.0658)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40B4 #B4AE3A
analogous
#3A7DB4 #3A40B4 #713AB4
triadic
#3A40B4 #B43A40 #40B43A
tetradic
#3A40B4 #B43A7D #B4AE3A #3AB471
square
#3A40B4 #B43A7D #B4AE3A #3AB471
split-complementary
#3A40B4 #B4713A #7DB43A
monochromatic
#1C1F57 #2B3086 #3A40B4 #6065CC #8E92DB

Accessibility & contrast

On white

8.16
#3A40B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3A40B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40B4
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40B4#FFFFFF#000000##FFFFFF
##3A40B41.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a40b4;
/* rgb */ color: rgb(58, 64, 180);
/* oklch */ color: oklch(44.3% 0.180 274.0);
Tailwind
colors: {
  custom: {
    50: '#8075cb',
    500: '#3a40b4',
    950: '#000000',
  },
}
SCSS
$custom: #3a40b4;
$custom-light: #8075cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40b4",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 237.049,
    "s": 51.261,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44274,
    "c": 0.18012,
    "h": 274
  },
  "luminance": 0.07862
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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