#4140BB#4140BB

#4140BB is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.188 H 276.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#4140BB
RGBrgb(65, 64, 187)
HSLhsl(240, 49%, 49%)
HSVhsv(240, 66%, 73%)
CMYKcmyk(65.2%, 65.8%, 0%, 26.7%)
CIE-LABlab(34.76, 38.70, -64.64)
CIE-LCHlch(34.76, 75.34, 300.91°)
OKLaboklab(45.36% 0.0204 -0.1864)
OKLCHoklch(45.36% 0.188 276.2)
XYZxyz(12.9801, 8.3774, 47.9370)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140BB #BABB40
analogous
#407DBB #4140BB #7F40BB
triadic
#4140BB #BB4140 #40BB41
tetradic
#4140BB #BB407D #BABB40 #40BB7F
square
#4140BB #BB407D #BABB40 #40BB7F
split-complementary
#4140BB #BB7F40 #7DBB40
monochromatic
#212160 #31308D #4140BB #6C6CCD #9A99DC

Accessibility & contrast

On white

7.85
#4140BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4140BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140BB
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140BB#FFFFFF#000000##FFFFFF
##4140BB1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4140bb;
/* rgb */ color: rgb(65, 64, 187);
/* oklch */ color: oklch(45.4% 0.188 276.2);
Tailwind
colors: {
  custom: {
    50: '#8475d0',
    500: '#4140bb',
    950: '#000000',
  },
}
SCSS
$custom: #4140bb;
$custom-light: #8475d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4140bb",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 240.488,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45359,
    "c": 0.18756,
    "h": 276.2
  },
  "luminance": 0.08378
}

Semantic roles & 50–950 ramp

primary
#4140BB
secondary
#C8C88F
accent
#D94FD7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4140BB

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

Preview Lab → · Contrast checker → · Palette generator →

#4140BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva