#3A40B6#3A40B6

#3A40B6 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.5% C 0.183 H 273.9°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#3A40B6
RGBrgb(58, 64, 182)
HSLhsl(237, 52%, 47%)
HSVhsv(237, 68%, 71%)
CMYKcmyk(68.1%, 64.8%, 0%, 28.6%)
CIE-LABlab(33.86, 36.04, -63.17)
CIE-LCHlch(33.86, 72.72, 299.71°)
OKLaboklab(44.45% 0.0126 -0.1823)
OKLCHoklch(44.45% 0.183 273.9)
XYZxyz(12.0190, 7.9426, 45.1466)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40B6 #B6B03A
analogous
#3A7EB6 #3A40B6 #723AB6
triadic
#3A40B6 #B63A40 #40B63A
tetradic
#3A40B6 #B63A7E #B6B03A #3AB672
square
#3A40B6 #B63A7E #B6B03A #3AB672
split-complementary
#3A40B6 #B6723A #7EB63A
monochromatic
#1C1F59 #2B3088 #3A40B6 #6166CD #8F93DB

Accessibility & contrast

On white

8.11
#3A40B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3A40B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40B6
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40B6#FFFFFF#000000##FFFFFF
##3A40B61.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3a40b6;
/* rgb */ color: rgb(58, 64, 182);
/* oklch */ color: oklch(44.5% 0.183 273.9);
Tailwind
colors: {
  custom: {
    50: '#8075cd',
    500: '#3a40b6',
    950: '#000000',
  },
}
SCSS
$custom: #3a40b6;
$custom-light: #8075cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40b6",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 237.097,
    "s": 51.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44453,
    "c": 0.18275,
    "h": 273.9
  },
  "luminance": 0.07944
}

Semantic roles & 50–950 ramp

primary
#3A40B6
secondary
#C6C386
accent
#D44DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A40B6

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

Preview Lab → · Contrast checker → · Palette generator →

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