#4F40B7#4F40B7

#4F40B7 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 46.1% C 0.180 H 282.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#4F40B7
RGBrgb(79, 64, 183)
HSLhsl(248, 48%, 48%)
HSVhsv(248, 65%, 72%)
CMYKcmyk(56.8%, 65%, 0%, 28.2%)
CIE-LABlab(35.49, 39.58, -61.03)
CIE-LCHlch(35.49, 72.74, 302.97°)
OKLaboklab(46.06% 0.0388 -0.1755)
OKLCHoklch(46.06% 0.18 282.5)
XYZxyz(13.6024, 8.7471, 45.7621)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40B7 #A8B740
analogous
#406CB7 #4F40B7 #8A40B7
triadic
#4F40B7 #B74F40 #40B74F
tetradic
#4F40B7 #B7406C #A8B740 #40B78A
square
#4F40B7 #B7406C #A8B740 #40B78A
split-complementary
#4F40B7 #B78A40 #6CB740
monochromatic
#28205C #3B308A #4F40B7 #7669CB #9F97DB

Accessibility & contrast

On white

7.64
#4F40B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4F40B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40B7
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40B7#FFFFFF#000000##FFFFFF
##4F40B71.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#195E76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4f40b7;
/* rgb */ color: rgb(79, 64, 183);
/* oklch */ color: oklch(46.1% 0.180 282.5);
Tailwind
colors: {
  custom: {
    50: '#8b76ce',
    500: '#4f40b7',
    950: '#000000',
  },
}
SCSS
$custom: #4f40b7;
$custom-light: #8b76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40b7",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 247.563,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46061,
    "c": 0.17969,
    "h": 282.5
  },
  "luminance": 0.08748
}

Semantic roles & 50–950 ramp

primary
#4F40B7
secondary
#BFC68D
accent
#D850C7
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4F40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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