#4F40AE#4F40AE

#4F40AE is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.3% C 0.168 H 283.6°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#4F40AE
RGBrgb(79, 64, 174)
HSLhsl(248, 46%, 47%)
HSVhsv(248, 63%, 68%)
CMYKcmyk(54.6%, 63.2%, 0%, 31.8%)
CIE-LABlab(34.77, 36.75, -56.87)
CIE-LCHlch(34.77, 67.71, 302.87°)
OKLaboklab(45.31% 0.0396 -0.1632)
OKLCHoklch(45.31% 0.168 283.6)
XYZxyz(12.6955, 8.3843, 40.9856)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40AE #9FAE40
analogous
#4068AE #4F40AE #8640AE
triadic
#4F40AE #AE4F40 #40AE4F
tetradic
#4F40AE #AE4068 #9FAE40 #40AE86
square
#4F40AE #AE4068 #9FAE40 #40AE86
split-complementary
#4F40AE #AE8640 #68AE40
monochromatic
#261F55 #3B3081 #4F40AE #7265C6 #9B92D7

Accessibility & contrast

On white

7.84
#4F40AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4F40AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40AE
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40AE#FFFFFF#000000##FFFFFF
##4F40AE1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#255B71
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4f40ae;
/* rgb */ color: rgb(79, 64, 174);
/* oklch */ color: oklch(45.3% 0.168 283.6);
Tailwind
colors: {
  custom: {
    50: '#8976c7',
    500: '#4f40ae',
    950: '#000000',
  },
}
SCSS
$custom: #4f40ae;
$custom-light: #8976c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40ae",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 248.182,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45311,
    "c": 0.16797,
    "h": 283.6
  },
  "luminance": 0.08385
}

Semantic roles & 50–950 ramp

primary
#4F40AE
secondary
#BAC288
accent
#D652C4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4F40AE

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

Preview Lab → · Contrast checker → · Palette generator →

#4F40AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva