#4140DD#4140DD

#4140DD is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.5% C 0.230 H 274.0°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#4140DD
RGBrgb(65, 64, 221)
HSLhsl(240, 70%, 56%)
HSVhsv(240, 71%, 87%)
CMYKcmyk(70.6%, 71%, 0%, 13.3%)
CIE-LABlab(37.86, 49.89, -79.28)
CIE-LCHlch(37.86, 93.67, 302.18°)
OKLaboklab(48.54% 0.016 -0.2293)
OKLCHoklch(48.54% 0.23 274)
XYZxyz(17.0602, 10.0094, 69.4255)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140DD #DCDD40
analogous
#408DDD #4140DD #8F40DD
triadic
#4140DD #DD4140 #40DD41
tetradic
#4140DD #DD408D #DCDD40 #40DD8F
square
#4140DD #DD408D #DCDD40 #40DD8F
split-complementary
#4140DD #DD8F40 #8DDD40
monochromatic
#19198A #2322BE #4140DD #7574E6 #A8A8EF

Accessibility & contrast

On white

6.99
#4140DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#4140DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4140DD
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140DD#FFFFFF#000000##FFFFFF
##4140DD1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E2
Deuteranopia (green-blind)
#0052DA
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4140dd;
/* rgb */ color: rgb(65, 64, 221);
/* oklch */ color: oklch(48.5% 0.230 274.0);
Tailwind
colors: {
  custom: {
    50: '#8b76e9',
    500: '#4140dd',
    950: '#000000',
  },
}
SCSS
$custom: #4140dd;
$custom-light: #8b76e9;
$custom-dark: #000000;
JSON
{
  "hex": "#4140dd",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 240.382,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.48538,
    "c": 0.22981,
    "h": 274
  },
  "luminance": 0.10011
}

Semantic roles & 50–950 ramp

primary
#4140DD
secondary
#DDDD9C
accent
#ED3BEB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4140DD

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

Preview Lab → · Contrast checker → · Palette generator →

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