#4F40BF#4F40BF

#4F40BF is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.7% C 0.190 H 281.5°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#4F40BF
RGBrgb(79, 64, 191)
HSLhsl(247, 50%, 50%)
HSVhsv(247, 66%, 75%)
CMYKcmyk(58.6%, 66.5%, 0%, 25.1%)
CIE-LABlab(36.16, 42.10, -64.66)
CIE-LCHlch(36.16, 77.15, 303.07°)
OKLaboklab(46.75% 0.0378 -0.1861)
OKLCHoklch(46.75% 0.19 281.5)
XYZxyz(14.4589, 9.0897, 50.2727)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40BF #B0BF40
analogous
#4070BF #4F40BF #8F40BF
triadic
#4F40BF #BF4F40 #40BF4F
tetradic
#4F40BF #BF4070 #B0BF40 #40BF8F
square
#4F40BF #BF4070 #B0BF40 #40BF8F
split-complementary
#4F40BF #BF8F40 #70BF40
monochromatic
#292163 #3C3191 #4F40BF #796ECE #A39CDE

Accessibility & contrast

On white

7.45
#4F40BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#4F40BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40BF
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40BF#FFFFFF#000000##FFFFFF
##4F40BF1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#0050BD
Tritanopia (blue-blind)
#04617A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4f40bf;
/* rgb */ color: rgb(79, 64, 191);
/* oklch */ color: oklch(46.7% 0.190 281.5);
Tailwind
colors: {
  custom: {
    50: '#8c76d3',
    500: '#4f40bf',
    950: '#000000',
  },
}
SCSS
$custom: #4f40bf;
$custom-light: #8c76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40bf",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 247.087,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.46748,
    "c": 0.18991,
    "h": 281.5
  },
  "luminance": 0.09091
}

Semantic roles & 50–950 ramp

primary
#4F40BF
secondary
#C3CA91
accent
#D94EC9
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4F40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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