#3B40BB#3B40BB

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

Color values

HEX#3B40BB
RGBrgb(59, 64, 187)
HSLhsl(238, 52%, 48%)
HSVhsv(238, 68%, 73%)
CMYKcmyk(68.4%, 65.8%, 0%, 26.7%)
CIE-LABlab(34.36, 37.89, -65.30)
CIE-LCHlch(34.36, 75.50, 300.13°)
OKLaboklab(44.97% 0.0133 -0.1885)
OKLCHoklch(44.97% 0.189 274)
XYZxyz(12.6037, 8.1833, 47.9194)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B40BB #BBB63B
analogous
#3B80BB #3B40BB #763BBB
triadic
#3B40BB #BB3B40 #40BB3B
tetradic
#3B40BB #BB3B80 #BBB63B #3BBB76
square
#3B40BB #BB3B80 #BBB63B #3BBB76
split-complementary
#3B40BB #BB763B #80BB3B
monochromatic
#1E205E #2C308C #3B40BB #6569CE #9396DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3B40BB#FFFFFF#000000##FFFFFF
##3B40BB1.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)
#0057BF
Deuteranopia (green-blind)
#004BB9
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3b40bb;
/* rgb */ color: rgb(59, 64, 187);
/* oklch */ color: oklch(45.0% 0.189 274.0);
Tailwind
colors: {
  custom: {
    50: '#8275d0',
    500: '#3b40bb',
    950: '#000000',
  },
}
SCSS
$custom: #3b40bb;
$custom-light: #8275d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b40bb",
  "rgb": {
    "r": 59,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 237.656,
    "s": 52.033,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44968,
    "c": 0.18902,
    "h": 274
  },
  "luminance": 0.08184
}

Semantic roles & 50–950 ramp

primary
#3B40BB
secondary
#C8C68A
accent
#D64CDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3B40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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