#4F398D#4F398D

#4F398D is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.5% C 0.133 H 291.6°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#4F398D
RGBrgb(79, 57, 141)
HSLhsl(256, 42%, 39%)
HSVhsv(256, 60%, 55%)
CMYKcmyk(44%, 59.6%, 0%, 44.7%)
CIE-LABlab(30.67, 30.84, -43.54)
CIE-LCHlch(30.67, 53.36, 305.31°)
OKLaboklab(41.52% 0.0491 -0.124)
OKLCHoklch(41.52% 0.133 291.6)
XYZxyz(9.4940, 6.5113, 25.9507)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F398D #778D39
analogous
#394D8D #4F398D #79398D
triadic
#4F398D #8D4F39 #398D4F
tetradic
#4F398D #8D394D #778D39 #398D79
square
#4F398D #8D394D #778D39 #398D79
split-complementary
#4F398D #8D7939 #4D8D39
monochromatic
#1E1636 #372761 #4F398D #684CB7 #8D78C8

Accessibility & contrast

On white

9.12
#4F398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4F398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F398D
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F398D#FFFFFF#000000##FFFFFF
##4F398D1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014A90
Deuteranopia (green-blind)
#0B468B
Tritanopia (blue-blind)
#3D4B5D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f398d;
/* rgb */ color: rgb(79, 57, 141);
/* oklch */ color: oklch(41.5% 0.133 291.6);
Tailwind
colors: {
  custom: {
    50: '#8570af',
    500: '#4f398d',
    950: '#000000',
  },
}
SCSS
$custom: #4f398d;
$custom-light: #8570af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f398d",
  "rgb": {
    "r": 79,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 255.714,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41524,
    "c": 0.13341,
    "h": 291.6
  },
  "luminance": 0.06512
}

Semantic roles & 50–950 ramp

primary
#4F398D
secondary
#A0B270
accent
#D256B2
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4F398D

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

Preview Lab → · Contrast checker → · Palette generator →

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