#4F40BB#4F40BB

#4F40BB is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.4% C 0.185 H 282.0°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#4F40BB
RGBrgb(79, 64, 187)
HSLhsl(247, 49%, 49%)
HSVhsv(247, 66%, 73%)
CMYKcmyk(57.8%, 65.8%, 0%, 26.7%)
CIE-LABlab(35.82, 40.84, -62.85)
CIE-LCHlch(35.82, 74.96, 303.02°)
OKLaboklab(46.4% 0.0383 -0.1808)
OKLCHoklch(46.4% 0.185 282)
XYZxyz(14.0247, 8.9160, 47.9860)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40BB #ACBB40
analogous
#406FBB #4F40BB #8D40BB
triadic
#4F40BB #BB4F40 #40BB4F
tetradic
#4F40BB #BB406F #ACBB40 #40BB8D
square
#4F40BB #BB406F #ACBB40 #40BB8D
split-complementary
#4F40BB #BB8D40 #6FBB40
monochromatic
#282160 #3C308D #4F40BB #776CCD #A199DC

Accessibility & contrast

On white

7.54
#4F40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#4F40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40BB
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40BB#FFFFFF#000000##FFFFFF
##4F40BB1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#0050B9
Tritanopia (blue-blind)
#105F78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4f40bb;
/* rgb */ color: rgb(79, 64, 187);
/* oklch */ color: oklch(46.4% 0.185 282.0);
Tailwind
colors: {
  custom: {
    50: '#8b76d0',
    500: '#4f40bb',
    950: '#000000',
  },
}
SCSS
$custom: #4f40bb;
$custom-light: #8b76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40bb",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 247.317,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46402,
    "c": 0.18482,
    "h": 282
  },
  "luminance": 0.08917
}

Semantic roles & 50–950 ramp

primary
#4F40BB
secondary
#C1C88F
accent
#D94FC8
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4F40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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