#4140AE#4140AE

#4140AE is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.170 H 277.2°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#4140AE
RGBrgb(65, 64, 174)
HSLhsl(241, 46%, 47%)
HSVhsv(241, 63%, 68%)
CMYKcmyk(62.6%, 63.2%, 0%, 31.8%)
CIE-LABlab(33.66, 34.33, -58.73)
CIE-LCHlch(33.66, 68.03, 300.31°)
OKLaboklab(44.22% 0.0215 -0.1691)
OKLCHoklch(44.22% 0.17 277.2)
XYZxyz(11.6509, 7.8457, 40.9366)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140AE #ADAE40
analogous
#4076AE #4140AE #7840AE
triadic
#4140AE #AE4140 #40AE41
tetradic
#4140AE #AE4076 #ADAE40 #40AE78
square
#4140AE #AE4076 #ADAE40 #40AE78
split-complementary
#4140AE #AE7840 #76AE40
monochromatic
#201F55 #303081 #4140AE #6665C6 #9292D7

Accessibility & contrast

On white

8.17
#4140AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4140AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140AE
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140AE#FFFFFF#000000##FFFFFF
##4140AE1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4140ae;
/* rgb */ color: rgb(65, 64, 174);
/* oklch */ color: oklch(44.2% 0.170 277.2);
Tailwind
colors: {
  custom: {
    50: '#8275c7',
    500: '#4140ae',
    950: '#000000',
  },
}
SCSS
$custom: #4140ae;
$custom-light: #8275c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4140ae",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 240.545,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44218,
    "c": 0.17048,
    "h": 277.2
  },
  "luminance": 0.07847
}

Semantic roles & 50–950 ramp

primary
#4140AE
secondary
#C2C288
accent
#D652D5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4140AE

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

Preview Lab → · Contrast checker → · Palette generator →

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