#4140C1#4140C1

#4140C1 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.9% C 0.195 H 275.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#4140C1
RGBrgb(65, 64, 193)
HSLhsl(240, 51%, 50%)
HSVhsv(240, 67%, 76%)
CMYKcmyk(66.3%, 66.8%, 0%, 24.3%)
CIE-LABlab(35.28, 40.71, -67.30)
CIE-LCHlch(35.28, 78.66, 301.17°)
OKLaboklab(45.9% 0.0198 -0.1943)
OKLCHoklch(45.9% 0.195 275.8)
XYZxyz(13.6359, 8.6397, 51.3908)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140C1 #C0C140
analogous
#407FC1 #4140C1 #8140C1
triadic
#4140C1 #C14140 #40C141
tetradic
#4140C1 #C1407F #C0C140 #40C181
square
#4140C1 #C1407F #C0C140 #40C181
split-complementary
#4140C1 #C18140 #7FC140
monochromatic
#222166 #313094 #4140C1 #6F6ED0 #9D9CDF

Accessibility & contrast

On white

7.70
#4140C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4140C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140C1
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140C1#FFFFFF#000000##FFFFFF
##4140C11.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4140c1;
/* rgb */ color: rgb(65, 64, 193);
/* oklch */ color: oklch(45.9% 0.195 275.8);
Tailwind
colors: {
  custom: {
    50: '#8575d5',
    500: '#4140c1',
    950: '#000000',
  },
}
SCSS
$custom: #4140c1;
$custom-light: #8575d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4140c1",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 240.465,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.459,
    "c": 0.19526,
    "h": 275.8
  },
  "luminance": 0.08641
}

Semantic roles & 50–950 ramp

primary
#4140C1
secondary
#CBCB92
accent
#DA4DD9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4140C1

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

Preview Lab → · Contrast checker → · Palette generator →

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