#4F40BE#4F40BE

#4F40BE is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.7% C 0.189 H 281.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#4F40BE
RGBrgb(79, 64, 190)
HSLhsl(247, 50%, 50%)
HSVhsv(247, 66%, 75%)
CMYKcmyk(58.4%, 66.3%, 0%, 25.5%)
CIE-LABlab(36.07, 41.79, -64.21)
CIE-LCHlch(36.07, 76.61, 303.06°)
OKLaboklab(46.66% 0.038 -0.1848)
OKLCHoklch(46.66% 0.189 281.6)
XYZxyz(14.3492, 9.0458, 49.6951)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40BE #AFBE40
analogous
#4070BE #4F40BE #8E40BE
triadic
#4F40BE #BE4F40 #40BE4F
tetradic
#4F40BE #BE4070 #AFBE40 #40BE8E
square
#4F40BE #BE4070 #AFBE40 #40BE8E
split-complementary
#4F40BE #BE8E40 #70BE40
monochromatic
#292162 #3C3190 #4F40BE #796DCE #A39BDD

Accessibility & contrast

On white

7.47
#4F40BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4F40BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40BE
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40BE#FFFFFF#000000##FFFFFF
##4F40BE1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C2
Deuteranopia (green-blind)
#0050BC
Tritanopia (blue-blind)
#076079
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4f40be;
/* rgb */ color: rgb(79, 64, 190);
/* oklch */ color: oklch(46.7% 0.189 281.6);
Tailwind
colors: {
  custom: {
    50: '#8c76d3',
    500: '#4f40be',
    950: '#000000',
  },
}
SCSS
$custom: #4f40be;
$custom-light: #8c76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40be",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 247.143,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46661,
    "c": 0.18864,
    "h": 281.6
  },
  "luminance": 0.09047
}

Semantic roles & 50–950 ramp

primary
#4F40BE
secondary
#C3C990
accent
#D94FC9
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4F40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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