#4F40AA#4F40AA

#4F40AA is a dark, vivid blue. Relative luminance 0.082; OKLCH L 45.0% C 0.163 H 284.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#4F40AA
RGBrgb(79, 64, 170)
HSLhsl(248, 45%, 46%)
HSVhsv(248, 62%, 67%)
CMYKcmyk(53.5%, 62.4%, 0%, 33.3%)
CIE-LABlab(34.46, 35.49, -54.99)
CIE-LCHlch(34.46, 65.45, 302.84°)
OKLaboklab(44.99% 0.0399 -0.1577)
OKLCHoklch(44.99% 0.163 284.2)
XYZxyz(12.3114, 8.2307, 38.9624)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40AA #9BAA40
analogous
#4066AA #4F40AA #8440AA
triadic
#4F40AA #AA4F40 #40AA4F
tetradic
#4F40AA #AA4066 #9BAA40 #40AA84
square
#4F40AA #AA4066 #9BAA40 #40AA84
split-complementary
#4F40AA #AA8440 #66AA40
monochromatic
#261F51 #3A2F7E #4F40AA #7163C4 #998FD5

Accessibility & contrast

On white

7.94
#4F40AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4F40AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40AA
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40AA#FFFFFF#000000##FFFFFF
##4F40AA1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AD
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#29596F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4f40aa;
/* rgb */ color: rgb(79, 64, 170);
/* oklch */ color: oklch(45.0% 0.163 284.2);
Tailwind
colors: {
  custom: {
    50: '#8875c4',
    500: '#4f40aa',
    950: '#000000',
  },
}
SCSS
$custom: #4f40aa;
$custom-light: #8875c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40aa",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 248.491,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44985,
    "c": 0.16268,
    "h": 284.2
  },
  "luminance": 0.08231
}

Semantic roles & 50–950 ramp

primary
#4F40AA
secondary
#B8C086
accent
#D553C3
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4F40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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