#4140DA#4140DA

#4140DA is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.2% C 0.226 H 274.2°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#4140DA
RGBrgb(65, 64, 218)
HSLhsl(240, 68%, 55%)
HSVhsv(240, 71%, 85%)
CMYKcmyk(70.2%, 70.6%, 0%, 14.5%)
CIE-LABlab(37.57, 48.92, -78.03)
CIE-LCHlch(37.57, 92.10, 302.09°)
OKLaboklab(48.25% 0.0164 -0.2256)
OKLCHoklch(48.25% 0.226 274.2)
XYZxyz(16.6641, 9.8510, 67.3393)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140DA #D9DA40
analogous
#408CDA #4140DA #8E40DA
triadic
#4140DA #DA4140 #40DA41
tetradic
#4140DA #DA408C #D9DA40 #40DA8E
square
#4140DA #DA408C #D9DA40 #40DA8E
split-complementary
#4140DA #DA8E40 #8CDA40
monochromatic
#1B1A86 #2524B9 #4140DA #7473E4 #A7A7EE

Accessibility & contrast

On white

7.07
#4140DA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4140DA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140DA
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140DA#FFFFFF#000000##FFFFFF
##4140DA1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DF
Deuteranopia (green-blind)
#0051D7
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4140da;
/* rgb */ color: rgb(65, 64, 218);
/* oklch */ color: oklch(48.2% 0.226 274.2);
Tailwind
colors: {
  custom: {
    50: '#8b76e7',
    500: '#4140da',
    950: '#000000',
  },
}
SCSS
$custom: #4140da;
$custom-light: #8b76e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4140da",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 240.39,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.48248,
    "c": 0.22622,
    "h": 274.2
  },
  "luminance": 0.09853
}

Semantic roles & 50–950 ramp

primary
#4140DA
secondary
#DBDB9B
accent
#EA3DE9
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4140DA

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

Preview Lab → · Contrast checker → · Palette generator →

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