#4F40AF#4F40AF

#4F40AF is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.169 H 283.5°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#4F40AF
RGBrgb(79, 64, 175)
HSLhsl(248, 46%, 47%)
HSVhsv(248, 63%, 69%)
CMYKcmyk(54.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(34.85, 37.06, -57.34)
CIE-LCHlch(34.85, 68.27, 302.88°)
OKLaboklab(45.39% 0.0395 -0.1646)
OKLCHoklch(45.39% 0.169 283.5)
XYZxyz(12.7933, 8.4235, 41.5009)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40AF #A0AF40
analogous
#4069AF #4F40AF #8740AF
triadic
#4F40AF #AF4F40 #40AF4F
tetradic
#4F40AF #AF4069 #A0AF40 #40AF87
square
#4F40AF #AF4069 #A0AF40 #40AF87
split-complementary
#4F40AF #AF8740 #69AF40
monochromatic
#271F55 #3B3082 #4F40AF #7365C7 #9C92D7

Accessibility & contrast

On white

7.82
#4F40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F40AF
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40AF#FFFFFF#000000##FFFFFF
##4F40AF1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#245B71
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4f40af;
/* rgb */ color: rgb(79, 64, 175);
/* oklch */ color: oklch(45.4% 0.169 283.5);
Tailwind
colors: {
  custom: {
    50: '#8976c8',
    500: '#4f40af',
    950: '#000000',
  },
}
SCSS
$custom: #4f40af;
$custom-light: #8976c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40af",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 248.108,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45393,
    "c": 0.16929,
    "h": 283.5
  },
  "luminance": 0.08424
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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