#3A40BF#3A40BF

#3A40BF is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.3% C 0.194 H 273.5°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#3A40BF
RGBrgb(58, 64, 191)
HSLhsl(237, 53%, 49%)
HSVhsv(237, 70%, 75%)
CMYKcmyk(69.6%, 66.5%, 0%, 25.1%)
CIE-LABlab(34.65, 39.14, -67.17)
CIE-LCHlch(34.65, 77.75, 300.23°)
OKLaboklab(45.27% 0.0118 -0.1941)
OKLCHoklch(45.27% 0.194 273.5)
XYZxyz(12.9791, 8.3267, 50.2033)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40BF #BFB93A
analogous
#3A83BF #3A40BF #773ABF
triadic
#3A40BF #BF3A40 #40BF3A
tetradic
#3A40BF #BF3A83 #BFB93A #3ABF77
square
#3A40BF #BF3A83 #BFB93A #3ABF77
split-complementary
#3A40BF #BF773A #83BF3A
monochromatic
#1D2161 #2C3090 #3A40BF #666BD0 #9598DF

Accessibility & contrast

On white

7.88
#3A40BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3A40BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40BF
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40BF#FFFFFF#000000##FFFFFF
##3A40BF1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#004BBD
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a40bf;
/* rgb */ color: rgb(58, 64, 191);
/* oklch */ color: oklch(45.3% 0.194 273.5);
Tailwind
colors: {
  custom: {
    50: '#8275d3',
    500: '#3a40bf',
    950: '#000000',
  },
}
SCSS
$custom: #3a40bf;
$custom-light: #8275d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40bf",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 237.293,
    "s": 53.414,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45273,
    "c": 0.19442,
    "h": 273.5
  },
  "luminance": 0.08328
}

Semantic roles & 50–950 ramp

primary
#3A40BF
secondary
#CAC78B
accent
#D64BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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