#4F18B4#4F18B4

#4F18B4 is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 41.0% C 0.215 H 288.5°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#4F18B4
RGBrgb(79, 24, 180)
HSLhsl(261, 76%, 40%)
HSVhsv(261, 87%, 71%)
CMYKcmyk(56.1%, 86.7%, 0%, 29.4%)
CIE-LABlab(28.41, 57.93, -70.89)
CIE-LCHlch(28.41, 91.55, 309.26°)
OKLaboklab(40.98% 0.0682 -0.204)
OKLCHoklch(40.98% 0.215 288.5)
XYZxyz(11.7869, 5.6102, 43.6330)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F18B4 #7DB418
analogous
#182FB4 #4F18B4 #9D18B4
triadic
#4F18B4 #B44F18 #18B44F
tetradic
#4F18B4 #B4182F #7DB418 #18B49D
square
#4F18B4 #B4182F #7DB418 #18B49D
split-complementary
#4F18B4 #B49D18 #2FB418
monochromatic
#200A48 #37117E #4F18B4 #6927E2 #8F5DE9

Accessibility & contrast

On white

9.90
#4F18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4F18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F18B4
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F18B4#FFFFFF#000000##FFFFFF
##4F18B41.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#224B6A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f18b4;
/* rgb */ color: rgb(79, 24, 180);
/* oklch */ color: oklch(41.0% 0.215 288.5);
Tailwind
colors: {
  custom: {
    50: '#8d60cc',
    500: '#4f18b4',
    950: '#000000',
  },
}
SCSS
$custom: #4f18b4;
$custom-light: #8d60cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f18b4",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 261.154,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.40981,
    "c": 0.21512,
    "h": 288.5
  },
  "luminance": 0.05611
}

Semantic roles & 50–950 ramp

primary
#4F18B4
secondary
#A5CD5B
accent
#F335B0
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0514
muted
#7E7A82

Preview Lab

Preview with #4F18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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