#3B40BF#3B40BF

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

Color values

HEX#3B40BF
RGBrgb(59, 64, 191)
HSLhsl(238, 53%, 49%)
HSVhsv(238, 69%, 75%)
CMYKcmyk(69.1%, 66.5%, 0%, 25.1%)
CIE-LABlab(34.72, 39.26, -67.07)
CIE-LCHlch(34.72, 77.72, 300.34°)
OKLaboklab(45.33% 0.0129 -0.1937)
OKLCHoklch(45.33% 0.194 273.8)
XYZxyz(13.0379, 8.3570, 50.2061)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40BF #BFBA3B
analogous
#3B82BF #3B40BF #783BBF
triadic
#3B40BF #BF3B40 #40BF3B
tetradic
#3B40BF #BF3B82 #BFBA3B #3BBF78
square
#3B40BF #BF3B82 #BFBA3B #3BBF78
split-complementary
#3B40BF #BF783B #82BF3B
monochromatic
#1E2161 #2D3090 #3B40BF #676BD0 #9699DF

Accessibility & contrast

On white

7.86
#3B40BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B40BF
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40BF#FFFFFF#000000##FFFFFF
##3B40BF1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b40bf;
/* rgb */ color: rgb(59, 64, 191);
/* oklch */ color: oklch(45.3% 0.194 273.8);
Tailwind
colors: {
  custom: {
    50: '#8275d3',
    500: '#3b40bf',
    950: '#000000',
  },
}
SCSS
$custom: #3b40bf;
$custom-light: #8275d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40bf",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 237.727,
    "s": 52.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45334,
    "c": 0.19417,
    "h": 273.8
  },
  "luminance": 0.08358
}

Semantic roles & 50–950 ramp

primary
#3B40BF
secondary
#CAC88C
accent
#D74CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3B40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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