#4F40BA#4F40BA

#4F40BA is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.3% C 0.184 H 282.1°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#4F40BA
RGBrgb(79, 64, 186)
HSLhsl(247, 49%, 49%)
HSVhsv(247, 66%, 73%)
CMYKcmyk(57.5%, 65.6%, 0%, 27.1%)
CIE-LABlab(35.74, 40.53, -62.40)
CIE-LCHlch(35.74, 74.40, 303.00°)
OKLaboklab(46.32% 0.0384 -0.1795)
OKLCHoklch(46.32% 0.184 282.1)
XYZxyz(13.9180, 8.8733, 47.4242)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40BA #ABBA40
analogous
#406EBA #4F40BA #8C40BA
triadic
#4F40BA #BA4F40 #40BA4F
tetradic
#4F40BA #BA406E #ABBA40 #40BA8C
square
#4F40BA #BA406E #ABBA40 #40BA8C
split-complementary
#4F40BA #BA8C40 #6EBA40
monochromatic
#28215F #3C308C #4F40BA #776BCC #A199DC

Accessibility & contrast

On white

7.57
#4F40BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#4F40BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40BA
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40BA#FFFFFF#000000##FFFFFF
##4F40BA1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#135F77
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4f40ba;
/* rgb */ color: rgb(79, 64, 186);
/* oklch */ color: oklch(46.3% 0.184 282.1);
Tailwind
colors: {
  custom: {
    50: '#8b76d0',
    500: '#4f40ba',
    950: '#000000',
  },
}
SCSS
$custom: #4f40ba;
$custom-light: #8b76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40ba",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 247.377,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46317,
    "c": 0.18354,
    "h": 282.1
  },
  "luminance": 0.08874
}

Semantic roles & 50–950 ramp

primary
#4F40BA
secondary
#C1C88E
accent
#D84FC8
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4F40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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