#4140BF#4140BF

#4140BF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.7% C 0.193 H 276.0°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#4140BF
RGBrgb(65, 64, 191)
HSLhsl(240, 50%, 50%)
HSVhsv(240, 66%, 75%)
CMYKcmyk(66%, 66.5%, 0%, 25.1%)
CIE-LABlab(35.10, 40.04, -66.42)
CIE-LCHlch(35.10, 77.56, 301.09°)
OKLaboklab(45.72% 0.02 -0.1917)
OKLCHoklch(45.72% 0.193 276)
XYZxyz(13.4143, 8.5510, 50.2237)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140BF #BEBF40
analogous
#407FBF #4140BF #8040BF
triadic
#4140BF #BF4140 #40BF41
tetradic
#4140BF #BF407F #BEBF40 #40BF80
square
#4140BF #BF407F #BEBF40 #40BF80
split-complementary
#4140BF #BF8040 #7FBF40
monochromatic
#222163 #313191 #4140BF #6F6ECE #9C9CDE

Accessibility & contrast

On white

7.75
#4140BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4140BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140BF
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140BF#FFFFFF#000000##FFFFFF
##4140BF1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#004DBD
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4140bf;
/* rgb */ color: rgb(65, 64, 191);
/* oklch */ color: oklch(45.7% 0.193 276.0);
Tailwind
colors: {
  custom: {
    50: '#8575d3',
    500: '#4140bf',
    950: '#000000',
  },
}
SCSS
$custom: #4140bf;
$custom-light: #8575d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4140bf",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 240.472,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.45719,
    "c": 0.19271,
    "h": 276
  },
  "luminance": 0.08552
}

Semantic roles & 50–950 ramp

primary
#4140BF
secondary
#C9CA91
accent
#D94ED8
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4140BF

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

Preview Lab → · Contrast checker → · Palette generator →

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