#3A40BC#3A40BC

#3A40BC is a dark, vivid blue. Relative luminance 0.082; OKLCH L 45.0% C 0.191 H 273.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#3A40BC
RGBrgb(58, 64, 188)
HSLhsl(237, 53%, 48%)
HSVhsv(237, 69%, 74%)
CMYKcmyk(69.1%, 66%, 0%, 26.3%)
CIE-LABlab(34.39, 38.11, -65.85)
CIE-LCHlch(34.39, 76.08, 300.06°)
OKLaboklab(45% 0.0121 -0.1902)
OKLCHoklch(45% 0.191 273.6)
XYZxyz(12.6524, 8.1960, 48.4824)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40BC #BCB63A
analogous
#3A81BC #3A40BC #753ABC
triadic
#3A40BC #BC3A40 #40BC3A
tetradic
#3A40BC #BC3A81 #BCB63A #3ABC75
square
#3A40BC #BC3A81 #BCB63A #3ABC75
split-complementary
#3A40BC #BC753A #81BC3A
monochromatic
#1D205E #2C308D #3A40BC #6469CF #9396DE

Accessibility & contrast

On white

7.96
#3A40BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3A40BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40BC
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40BC#FFFFFF#000000##FFFFFF
##3A40BC1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a40bc;
/* rgb */ color: rgb(58, 64, 188);
/* oklch */ color: oklch(45.0% 0.191 273.6);
Tailwind
colors: {
  custom: {
    50: '#8175d1',
    500: '#3a40bc',
    950: '#000000',
  },
}
SCSS
$custom: #3a40bc;
$custom-light: #8175d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40bc",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 237.231,
    "s": 52.846,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44997,
    "c": 0.19056,
    "h": 273.6
  },
  "luminance": 0.08197
}

Semantic roles & 50–950 ramp

primary
#3A40BC
secondary
#C9C689
accent
#D64CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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