#4140C0#4140C0

#4140C0 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.8% C 0.194 H 275.9°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#4140C0
RGBrgb(65, 64, 192)
HSLhsl(240, 50%, 50%)
HSVhsv(240, 67%, 75%)
CMYKcmyk(66.1%, 66.7%, 0%, 24.7%)
CIE-LABlab(35.19, 40.38, -66.86)
CIE-LCHlch(35.19, 78.11, 301.13°)
OKLaboklab(45.81% 0.0199 -0.193)
OKLCHoklch(45.81% 0.194 275.9)
XYZxyz(13.5247, 8.5952, 50.8053)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140C0 #BFC040
analogous
#407FC0 #4140C0 #8140C0
triadic
#4140C0 #C04140 #40C041
tetradic
#4140C0 #C0407F #BFC040 #40C081
square
#4140C0 #C0407F #BFC040 #40C081
split-complementary
#4140C0 #C08140 #7FC040
monochromatic
#222164 #313092 #4140C0 #6F6ECF #9D9CDE

Accessibility & contrast

On white

7.72
#4140C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4140C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140C0
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140C0#FFFFFF#000000##FFFFFF
##4140C01.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#004DBE
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4140c0;
/* rgb */ color: rgb(65, 64, 192);
/* oklch */ color: oklch(45.8% 0.194 275.9);
Tailwind
colors: {
  custom: {
    50: '#8575d4',
    500: '#4140c0',
    950: '#000000',
  },
}
SCSS
$custom: #4140c0;
$custom-light: #8575d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4140c0",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 240.469,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45809,
    "c": 0.19398,
    "h": 275.9
  },
  "luminance": 0.08596
}

Semantic roles & 50–950 ramp

primary
#4140C0
secondary
#CACB91
accent
#DA4ED9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4140C0

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

Preview Lab → · Contrast checker → · Palette generator →

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