#4140BD#4140BD

#4140BD is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.5% C 0.190 H 276.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#4140BD
RGBrgb(65, 64, 189)
HSLhsl(240, 49%, 50%)
HSVhsv(240, 66%, 74%)
CMYKcmyk(65.6%, 66.1%, 0%, 25.9%)
CIE-LABlab(34.93, 39.37, -65.53)
CIE-LCHlch(34.93, 76.45, 301.00°)
OKLaboklab(45.54% 0.0202 -0.1891)
OKLCHoklch(45.54% 0.19 276.1)
XYZxyz(13.1957, 8.4636, 49.0725)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140BD #BCBD40
analogous
#407EBD #4140BD #8040BD
triadic
#4140BD #BD4140 #40BD41
tetradic
#4140BD #BD407E #BCBD40 #40BD80
square
#4140BD #BD407E #BCBD40 #40BD80
split-complementary
#4140BD #BD8040 #7EBD40
monochromatic
#222162 #31318F #4140BD #6E6DCD #9B9ADD

Accessibility & contrast

On white

7.80
#4140BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4140BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140BD
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140BD#FFFFFF#000000##FFFFFF
##4140BD1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#004DBB
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4140bd;
/* rgb */ color: rgb(65, 64, 189);
/* oklch */ color: oklch(45.5% 0.190 276.1);
Tailwind
colors: {
  custom: {
    50: '#8575d2',
    500: '#4140bd',
    950: '#000000',
  },
}
SCSS
$custom: #4140bd;
$custom-light: #8575d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4140bd",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 240.48,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45538,
    "c": 0.19014,
    "h": 276.1
  },
  "luminance": 0.08465
}

Semantic roles & 50–950 ramp

primary
#4140BD
secondary
#C9C990
accent
#D94FD8
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4140BD

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

Preview Lab → · Contrast checker → · Palette generator →

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