#4F40BD#4F40BD

#4F40BD is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.6% C 0.187 H 281.7°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#4F40BD
RGBrgb(79, 64, 189)
HSLhsl(247, 49%, 50%)
HSVhsv(247, 66%, 74%)
CMYKcmyk(58.2%, 66.1%, 0%, 25.9%)
CIE-LABlab(35.99, 41.47, -63.76)
CIE-LCHlch(35.99, 76.06, 303.04°)
OKLaboklab(46.57% 0.0381 -0.1835)
OKLCHoklch(46.57% 0.187 281.7)
XYZxyz(14.2403, 9.0022, 49.1215)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40BD #AEBD40
analogous
#4070BD #4F40BD #8E40BD
triadic
#4F40BD #BD4F40 #40BD4F
tetradic
#4F40BD #BD4070 #AEBD40 #40BD8E
square
#4F40BD #BD4070 #AEBD40 #40BD8E
split-complementary
#4F40BD #BD8E40 #70BD40
monochromatic
#292162 #3C318F #4F40BD #786DCD #A29ADD

Accessibility & contrast

On white

7.50
#4F40BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4F40BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40BD
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40BD#FFFFFF#000000##FFFFFF
##4F40BD1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#0B6079
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4f40bd;
/* rgb */ color: rgb(79, 64, 189);
/* oklch */ color: oklch(46.6% 0.187 281.7);
Tailwind
colors: {
  custom: {
    50: '#8c76d2',
    500: '#4f40bd',
    950: '#000000',
  },
}
SCSS
$custom: #4f40bd;
$custom-light: #8c76d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40bd",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 247.2,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46574,
    "c": 0.18737,
    "h": 281.7
  },
  "luminance": 0.09003
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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