#3B40BE#3B40BE

#3B40BE is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.193 H 273.9°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#3B40BE
RGBrgb(59, 64, 190)
HSLhsl(238, 53%, 49%)
HSVhsv(238, 69%, 75%)
CMYKcmyk(68.9%, 66.3%, 0%, 25.5%)
CIE-LABlab(34.63, 38.92, -66.63)
CIE-LCHlch(34.63, 77.17, 300.29°)
OKLaboklab(45.24% 0.013 -0.1924)
OKLCHoklch(45.24% 0.193 273.9)
XYZxyz(12.9282, 8.3131, 49.6285)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40BE #BEB93B
analogous
#3B82BE #3B40BE #783BBE
triadic
#3B40BE #BE3B40 #40BE3B
tetradic
#3B40BE #BE3B82 #BEB93B #3BBE78
square
#3B40BE #BE3B82 #BEB93B #3BBE78
split-complementary
#3B40BE #BE783B #82BE3B
monochromatic
#1E2161 #2C308F #3B40BE #676BD0 #9598DE

Accessibility & contrast

On white

7.89
#3B40BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3B40BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B40BE
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B40BE#FFFFFF#000000##FFFFFF
##3B40BE1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b40be;
/* rgb */ color: rgb(59, 64, 190);
/* oklch */ color: oklch(45.2% 0.193 273.9);
Tailwind
colors: {
  custom: {
    50: '#8275d3',
    500: '#3b40be',
    950: '#000000',
  },
}
SCSS
$custom: #3b40be;
$custom-light: #8275d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40be",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 237.71,
    "s": 52.61,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45242,
    "c": 0.19288,
    "h": 273.9
  },
  "luminance": 0.08314
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3B40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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