#4F40AB#4F40AB

#4F40AB is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.164 H 284.0°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#4F40AB
RGBrgb(79, 64, 171)
HSLhsl(248, 46%, 46%)
HSVhsv(248, 63%, 67%)
CMYKcmyk(53.8%, 62.6%, 0%, 32.9%)
CIE-LABlab(34.54, 35.80, -55.46)
CIE-LCHlch(34.54, 66.02, 302.84°)
OKLaboklab(45.07% 0.0398 -0.1591)
OKLCHoklch(45.07% 0.164 284)
XYZxyz(12.4063, 8.2686, 39.4625)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40AB #9CAB40
analogous
#4066AB #4F40AB #8440AB
triadic
#4F40AB #AB4F40 #40AB4F
tetradic
#4F40AB #AB4066 #9CAB40 #40AB84
square
#4F40AB #AB4066 #9CAB40 #40AB84
split-complementary
#4F40AB #AB8440 #66AB40
monochromatic
#261F52 #3A2F7E #4F40AB #7163C5 #9A90D5

Accessibility & contrast

On white

7.91
#4F40AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4F40AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40AB
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40AB#FFFFFF#000000##FFFFFF
##4F40AB1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#285A6F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4f40ab;
/* rgb */ color: rgb(79, 64, 171);
/* oklch */ color: oklch(45.1% 0.164 284.0);
Tailwind
colors: {
  custom: {
    50: '#8975c5',
    500: '#4f40ab',
    950: '#000000',
  },
}
SCSS
$custom: #4f40ab;
$custom-light: #8975c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40ab",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 248.411,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45066,
    "c": 0.16401,
    "h": 284
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

primary
#4F40AB
secondary
#B8C186
accent
#D553C3
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4F40AB

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

Preview Lab → · Contrast checker → · Palette generator →

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