#4140AC#4140AC

#4140AC is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.0% C 0.168 H 277.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#4140AC
RGBrgb(65, 64, 172)
HSLhsl(241, 46%, 46%)
HSVhsv(241, 63%, 67%)
CMYKcmyk(62.2%, 62.8%, 0%, 32.5%)
CIE-LABlab(33.50, 33.65, -57.80)
CIE-LCHlch(33.50, 66.89, 300.21°)
OKLaboklab(44.05% 0.0216 -0.1664)
OKLCHoklch(44.05% 0.168 277.4)
XYZxyz(11.4574, 7.7683, 39.9174)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140AC #ABAC40
analogous
#4075AC #4140AC #7740AC
triadic
#4140AC #AC4140 #40AC41
tetradic
#4140AC #AC4075 #ABAC40 #40AC77
square
#4140AC #AC4075 #ABAC40 #40AC77
split-complementary
#4140AC #AC7740 #75AC40
monochromatic
#1F1F53 #302F7F #4140AC #6564C5 #9191D6

Accessibility & contrast

On white

8.22
#4140AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4140AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140AC
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140AC#FFFFFF#000000##FFFFFF
##4140AC1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#005B70
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4140ac;
/* rgb */ color: rgb(65, 64, 172);
/* oklch */ color: oklch(44.0% 0.168 277.4);
Tailwind
colors: {
  custom: {
    50: '#8175c6',
    500: '#4140ac',
    950: '#000000',
  },
}
SCSS
$custom: #4140ac;
$custom-light: #8175c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4140ac",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 240.556,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44047,
    "c": 0.1678,
    "h": 277.4
  },
  "luminance": 0.07769
}

Semantic roles & 50–950 ramp

primary
#4140AC
secondary
#C1C187
accent
#D552D4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #4140AC

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

Preview Lab → · Contrast checker → · Palette generator →

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