#4F40BC#4F40BC

#4F40BC is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.5% C 0.186 H 281.8°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#4F40BC
RGBrgb(79, 64, 188)
HSLhsl(247, 49%, 49%)
HSVhsv(247, 66%, 74%)
CMYKcmyk(58%, 66%, 0%, 26.3%)
CIE-LABlab(35.91, 41.16, -63.30)
CIE-LCHlch(35.91, 75.51, 303.03°)
OKLaboklab(46.49% 0.0382 -0.1821)
OKLCHoklch(46.49% 0.186 281.8)
XYZxyz(14.1321, 8.9590, 48.5518)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40BC #ADBC40
analogous
#406FBC #4F40BC #8D40BC
triadic
#4F40BC #BC4F40 #40BC4F
tetradic
#4F40BC #BC406F #ADBC40 #40BC8D
square
#4F40BC #BC406F #ADBC40 #40BC8D
split-complementary
#4F40BC #BC8D40 #6FBC40
monochromatic
#292161 #3C308E #4F40BC #786CCD #A29ADD

Accessibility & contrast

On white

7.52
#4F40BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4F40BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40BC
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40BC#FFFFFF#000000##FFFFFF
##4F40BC1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#0E6078
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4f40bc;
/* rgb */ color: rgb(79, 64, 188);
/* oklch */ color: oklch(46.5% 0.186 281.8);
Tailwind
colors: {
  custom: {
    50: '#8b76d1',
    500: '#4f40bc',
    950: '#000000',
  },
}
SCSS
$custom: #4f40bc;
$custom-light: #8b76d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40bc",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 247.258,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46488,
    "c": 0.18609,
    "h": 281.8
  },
  "luminance": 0.0896
}

Semantic roles & 50–950 ramp

primary
#4F40BC
secondary
#C2C98F
accent
#D94FC8
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4F40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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