#3A40BD#3A40BD

#3A40BD is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.1% C 0.192 H 273.6°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#3A40BD
RGBrgb(58, 64, 189)
HSLhsl(237, 53%, 48%)
HSVhsv(237, 69%, 74%)
CMYKcmyk(69.3%, 66.1%, 0%, 25.9%)
CIE-LABlab(34.48, 38.45, -66.29)
CIE-LCHlch(34.48, 76.64, 300.12°)
OKLaboklab(45.09% 0.012 -0.1915)
OKLCHoklch(45.09% 0.192 273.6)
XYZxyz(12.7606, 8.2392, 49.0521)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40BD #BDB73A
analogous
#3A81BD #3A40BD #753ABD
triadic
#3A40BD #BD3A40 #40BD3A
tetradic
#3A40BD #BD3A81 #BDB73A #3ABD75
square
#3A40BD #BD3A81 #BDB73A #3ABD75
split-complementary
#3A40BD #BD753A #81BD3A
monochromatic
#1D205F #2C308E #3A40BD #6569D0 #9397DE

Accessibility & contrast

On white

7.93
#3A40BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3A40BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40BD
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40BD#FFFFFF#000000##FFFFFF
##3A40BD1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#004BBB
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a40bd;
/* rgb */ color: rgb(58, 64, 189);
/* oklch */ color: oklch(45.1% 0.192 273.6);
Tailwind
colors: {
  custom: {
    50: '#8275d2',
    500: '#3a40bd',
    950: '#000000',
  },
}
SCSS
$custom: #3a40bd;
$custom-light: #8275d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40bd",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 237.252,
    "s": 53.036,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45089,
    "c": 0.19184,
    "h": 273.6
  },
  "luminance": 0.0824
}

Semantic roles & 50–950 ramp

primary
#3A40BD
secondary
#C9C68A
accent
#D64BDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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