#4F40CA#4F40CA

#4F40CA is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.7% C 0.204 H 280.3°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#4F40CA
RGBrgb(79, 64, 202)
HSLhsl(247, 57%, 52%)
HSVhsv(247, 68%, 79%)
CMYKcmyk(60.9%, 68.3%, 0%, 20.8%)
CIE-LABlab(37.10, 45.55, -69.53)
CIE-LCHlch(37.10, 83.12, 303.23°)
OKLaboklab(47.72% 0.0363 -0.2004)
OKLCHoklch(47.72% 0.204 280.3)
XYZxyz(15.7151, 9.5922, 56.8890)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40CA #BBCA40
analogous
#4076CA #4F40CA #9440CA
triadic
#4F40CA #CA4F40 #40CA4F
tetradic
#4F40CA #CA4076 #BBCA40 #40CA94
square
#4F40CA #CA4076 #BBCA40 #40CA94
split-complementary
#4F40CA #CA9440 #76CA40
monochromatic
#281F70 #392CA0 #4F40CA #7B70D7 #A7A0E5

Accessibility & contrast

On white

7.20
#4F40CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#4F40CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40CA
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40CA#FFFFFF#000000##FFFFFF
##4F40CA1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#0052C7
Tritanopia (blue-blind)
#006480
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4f40ca;
/* rgb */ color: rgb(79, 64, 202);
/* oklch */ color: oklch(47.7% 0.204 280.3);
Tailwind
colors: {
  custom: {
    50: '#8e76db',
    500: '#4f40ca',
    950: '#000000',
  },
}
SCSS
$custom: #4f40ca;
$custom-light: #8e76db;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40ca",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 246.522,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47719,
    "c": 0.20366,
    "h": 280.3
  },
  "luminance": 0.09593
}

Semantic roles & 50–950 ramp

primary
#4F40CA
secondary
#CAD195
accent
#E048CF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4F40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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