#4140C4#4140C4

#4140C4 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.2% C 0.199 H 275.6°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#4140C4
RGBrgb(65, 64, 196)
HSLhsl(240, 53%, 51%)
HSVhsv(240, 67%, 77%)
CMYKcmyk(66.8%, 67.3%, 0%, 23.1%)
CIE-LABlab(35.55, 41.71, -68.62)
CIE-LCHlch(35.55, 80.30, 301.29°)
OKLaboklab(46.18% 0.0194 -0.1981)
OKLCHoklch(46.18% 0.199 275.6)
XYZxyz(13.9739, 8.7749, 53.1712)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140C4 #C3C440
analogous
#4081C4 #4140C4 #8340C4
triadic
#4140C4 #C44140 #40C441
tetradic
#4140C4 #C44081 #C3C440 #40C483
square
#4140C4 #C44081 #C3C440 #40C483
split-complementary
#4140C4 #C48340 #81C440
monochromatic
#212069 #302F98 #4140C4 #706FD2 #9E9EE1

Accessibility & contrast

On white

7.62
#4140C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4140C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140C4
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140C4#FFFFFF#000000##FFFFFF
##4140C41.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#004EC2
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4140c4;
/* rgb */ color: rgb(65, 64, 196);
/* oklch */ color: oklch(46.2% 0.199 275.6);
Tailwind
colors: {
  custom: {
    50: '#8676d7',
    500: '#4140c4',
    950: '#000000',
  },
}
SCSS
$custom: #4140c4;
$custom-light: #8676d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4140c4",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 240.455,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46175,
    "c": 0.19907,
    "h": 275.6
  },
  "luminance": 0.08776
}

Semantic roles & 50–950 ramp

primary
#4140C4
secondary
#CDCD93
accent
#DC4CDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #4140C4

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

Preview Lab → · Contrast checker → · Palette generator →

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