#4F40CB#4F40CB

#4F40CB is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.8% C 0.205 H 280.2°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#4F40CB
RGBrgb(79, 64, 203)
HSLhsl(246, 57%, 52%)
HSVhsv(246, 68%, 80%)
CMYKcmyk(61.1%, 68.5%, 0%, 20.4%)
CIE-LABlab(37.19, 45.86, -69.97)
CIE-LCHlch(37.19, 83.66, 303.24°)
OKLaboklab(47.81% 0.0362 -0.2017)
OKLCHoklch(47.81% 0.205 280.2)
XYZxyz(15.8339, 9.6397, 57.5146)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40CB #BCCB40
analogous
#4076CB #4F40CB #9540CB
triadic
#4F40CB #CB4F40 #40CB4F
tetradic
#4F40CB #CB4076 #BCCB40 #40CB95
square
#4F40CB #CB4076 #BCCB40 #40CB95
split-complementary
#4F40CB #CB9540 #76CB40
monochromatic
#281F72 #392CA2 #4F40CB #7B70D8 #A8A0E5

Accessibility & contrast

On white

7.17
#4F40CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4F40CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40CB
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40CB#FFFFFF#000000##FFFFFF
##4F40CB1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0052C8
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4f40cb;
/* rgb */ color: rgb(79, 64, 203);
/* oklch */ color: oklch(47.8% 0.205 280.2);
Tailwind
colors: {
  custom: {
    50: '#8e76dc',
    500: '#4f40cb',
    950: '#000000',
  },
}
SCSS
$custom: #4f40cb;
$custom-light: #8e76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40cb",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 246.475,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47808,
    "c": 0.20489,
    "h": 280.2
  },
  "luminance": 0.09641
}

Semantic roles & 50–950 ramp

primary
#4F40CB
secondary
#CBD295
accent
#E047D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4F40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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