#4140C2#4140C2

#4140C2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 46.0% C 0.197 H 275.7°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#4140C2
RGBrgb(65, 64, 194)
HSLhsl(240, 52%, 51%)
HSVhsv(240, 67%, 76%)
CMYKcmyk(66.5%, 67%, 0%, 23.9%)
CIE-LABlab(35.37, 41.04, -67.74)
CIE-LCHlch(35.37, 79.21, 301.21°)
OKLaboklab(45.99% 0.0197 -0.1955)
OKLCHoklch(45.99% 0.197 275.7)
XYZxyz(13.7478, 8.6844, 51.9802)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140C2 #C1C240
analogous
#4080C2 #4140C2 #8240C2
triadic
#4140C2 #C24140 #40C241
tetradic
#4140C2 #C24080 #C1C240 #40C282
square
#4140C2 #C24080 #C1C240 #40C282
split-complementary
#4140C2 #C28240 #80C240
monochromatic
#212167 #303095 #4140C2 #6F6ED1 #9D9DE0

Accessibility & contrast

On white

7.67
#4140C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4140C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140C2
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140C2#FFFFFF#000000##FFFFFF
##4140C21.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4140c2;
/* rgb */ color: rgb(65, 64, 194);
/* oklch */ color: oklch(46.0% 0.197 275.7);
Tailwind
colors: {
  custom: {
    50: '#8675d6',
    500: '#4140c2',
    950: '#000000',
  },
}
SCSS
$custom: #4140c2;
$custom-light: #8675d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4140c2",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 240.462,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.45991,
    "c": 0.19654,
    "h": 275.7
  },
  "luminance": 0.08686
}

Semantic roles & 50–950 ramp

primary
#4140C2
secondary
#CBCC92
accent
#DB4DDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4140C2

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

Preview Lab → · Contrast checker → · Palette generator →

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