#4140AF#4140AF

#4140AF is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.3% C 0.172 H 277.2°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#4140AF
RGBrgb(65, 64, 175)
HSLhsl(241, 46%, 47%)
HSVhsv(241, 63%, 69%)
CMYKcmyk(62.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(33.74, 34.67, -59.19)
CIE-LCHlch(33.74, 68.59, 300.36°)
OKLaboklab(44.3% 0.0214 -0.1705)
OKLCHoklch(44.3% 0.172 277.2)
XYZxyz(11.7487, 7.8848, 41.4519)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140AF #AEAF40
analogous
#4076AF #4140AF #7940AF
triadic
#4140AF #AF4140 #40AF41
tetradic
#4140AF #AF4076 #AEAF40 #40AF79
square
#4140AF #AF4076 #AEAF40 #40AF79
split-complementary
#4140AF #AF7940 #76AF40
monochromatic
#201F55 #303082 #4140AF #6665C7 #9392D7

Accessibility & contrast

On white

8.15
#4140AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4140AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140AF
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140AF#FFFFFF#000000##FFFFFF
##4140AF1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4140af;
/* rgb */ color: rgb(65, 64, 175);
/* oklch */ color: oklch(44.3% 0.172 277.2);
Tailwind
colors: {
  custom: {
    50: '#8275c8',
    500: '#4140af',
    950: '#000000',
  },
}
SCSS
$custom: #4140af;
$custom-light: #8275c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4140af",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 240.541,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44304,
    "c": 0.17181,
    "h": 277.2
  },
  "luminance": 0.07886
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4140AF

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

Preview Lab → · Contrast checker → · Palette generator →

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