#4F40C3#4F40C3

#4F40C3 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.1% C 0.195 H 281.0°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#4F40C3
RGBrgb(79, 64, 195)
HSLhsl(247, 52%, 51%)
HSVhsv(247, 67%, 76%)
CMYKcmyk(59.5%, 67.2%, 0%, 23.5%)
CIE-LABlab(36.50, 43.36, -66.44)
CIE-LCHlch(36.50, 79.34, 303.13°)
OKLaboklab(47.1% 0.0373 -0.1913)
OKLCHoklch(47.1% 0.195 281)
XYZxyz(14.9051, 9.2681, 52.6227)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40C3 #B4C340
analogous
#4072C3 #4F40C3 #9040C3
triadic
#4F40C3 #C34F40 #40C34F
tetradic
#4F40C3 #C34072 #B4C340 #40C390
square
#4F40C3 #C34072 #B4C340 #40C390
split-complementary
#4F40C3 #C39040 #72C340
monochromatic
#292168 #3B2F97 #4F40C3 #7A6FD2 #A59DE0

Accessibility & contrast

On white

7.36
#4F40C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4F40C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40C3
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40C3#FFFFFF#000000##FFFFFF
##4F40C31.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#00627C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4f40c3;
/* rgb */ color: rgb(79, 64, 195);
/* oklch */ color: oklch(47.1% 0.195 281.0);
Tailwind
colors: {
  custom: {
    50: '#8d76d6',
    500: '#4f40c3',
    950: '#000000',
  },
}
SCSS
$custom: #4f40c3;
$custom-light: #8d76d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40c3",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 246.87,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47097,
    "c": 0.19494,
    "h": 281
  },
  "luminance": 0.09269
}

Semantic roles & 50–950 ramp

primary
#4F40C3
secondary
#C6CC92
accent
#DC4CCB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4F40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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