#4F40CD#4F40CD

#4F40CD is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 48.0% C 0.207 H 280.0°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#4F40CD
RGBrgb(79, 64, 205)
HSLhsl(246, 59%, 53%)
HSVhsv(246, 69%, 80%)
CMYKcmyk(61.5%, 68.8%, 0%, 19.6%)
CIE-LABlab(37.36, 46.49, -70.84)
CIE-LCHlch(37.36, 84.73, 303.27°)
OKLaboklab(47.99% 0.0358 -0.2042)
OKLCHoklch(47.99% 0.207 280)
XYZxyz(16.0738, 9.7356, 58.7779)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40CD #BECD40
analogous
#4077CD #4F40CD #9540CD
triadic
#4F40CD #CD4F40 #40CD4F
tetradic
#4F40CD #CD4077 #BECD40 #40CD95
square
#4F40CD #CD4077 #BECD40 #40CD95
split-complementary
#4F40CD #CD9540 #77CD40
monochromatic
#281E74 #382BA5 #4F40CD #7C71DA #A8A1E6

Accessibility & contrast

On white

7.12
#4F40CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4F40CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40CD
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40CD#FFFFFF#000000##FFFFFF
##4F40CD1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0052CA
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4f40cd;
/* rgb */ color: rgb(79, 64, 205);
/* oklch */ color: oklch(48.0% 0.207 280.0);
Tailwind
colors: {
  custom: {
    50: '#8e76dd',
    500: '#4f40cd',
    950: '#000000',
  },
}
SCSS
$custom: #4f40cd;
$custom-light: #8e76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40cd",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 246.383,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47989,
    "c": 0.20735,
    "h": 280
  },
  "luminance": 0.09737
}

Semantic roles & 50–950 ramp

primary
#4F40CD
secondary
#CCD396
accent
#E246D1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4F40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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