#4140C8#4140C8

#4140C8 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.5% C 0.204 H 275.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#4140C8
RGBrgb(65, 64, 200)
HSLhsl(240, 55%, 52%)
HSVhsv(240, 68%, 78%)
CMYKcmyk(67.5%, 68%, 0%, 21.6%)
CIE-LABlab(35.91, 43.03, -70.37)
CIE-LCHlch(35.91, 82.48, 301.45°)
OKLaboklab(46.54% 0.0189 -0.2032)
OKLCHoklch(46.54% 0.204 275.3)
XYZxyz(14.4353, 8.9594, 55.6010)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140C8 #C7C840
analogous
#4083C8 #4140C8 #8540C8
triadic
#4140C8 #C84140 #40C841
tetradic
#4140C8 #C84083 #C7C840 #40C885
square
#4140C8 #C84083 #C7C840 #40C885
split-complementary
#4140C8 #C88540 #83C840
monochromatic
#20206E #2E2D9D #4140C8 #7070D6 #A09FE3

Accessibility & contrast

On white

7.52
#4140C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4140C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140C8
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140C8#FFFFFF#000000##FFFFFF
##4140C81.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4140c8;
/* rgb */ color: rgb(65, 64, 200);
/* oklch */ color: oklch(46.5% 0.204 275.3);
Tailwind
colors: {
  custom: {
    50: '#8776da',
    500: '#4140c8',
    950: '#000000',
  },
}
SCSS
$custom: #4140c8;
$custom-light: #8776da;
$custom-dark: #000000;
JSON
{
  "hex": "#4140c8",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 240.441,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.46544,
    "c": 0.2041,
    "h": 275.3
  },
  "luminance": 0.08961
}

Semantic roles & 50–950 ramp

primary
#4140C8
secondary
#CFD094
accent
#DF49DE
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4140C8

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

Preview Lab → · Contrast checker → · Palette generator →

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