#4831BB#4831BB

#4831BB is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.6% C 0.203 H 281.6°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#4831BB
RGBrgb(72, 49, 187)
HSLhsl(250, 58%, 46%)
HSVhsv(250, 74%, 73%)
CMYKcmyk(61.5%, 73.8%, 0%, 26.7%)
CIE-LABlab(32.17, 48.24, -68.86)
CIE-LCHlch(32.17, 84.07, 305.01°)
OKLaboklab(43.64% 0.0406 -0.1986)
OKLCHoklch(43.64% 0.203 281.6)
XYZxyz(12.7376, 7.1613, 47.7151)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4831BB #A4BB31
analogous
#315FBB #4831BB #8D31BB
triadic
#4831BB #BB4831 #31BB48
tetradic
#4831BB #BB315F #A4BB31 #31BB8D
square
#4831BB #BB315F #A4BB31 #31BB8D
split-complementary
#4831BB #BB8D31 #5FBB31
monochromatic
#23185A #35248B #4831BB #6B56D3 #9687E0

Accessibility & contrast

On white

8.63
#4831BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4831BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4831BB
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4831BB#FFFFFF#000000##FFFFFF
##4831BB1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BF
Deuteranopia (green-blind)
#0047B8
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4831bb;
/* rgb */ color: rgb(72, 49, 187);
/* oklch */ color: oklch(43.6% 0.203 281.6);
Tailwind
colors: {
  custom: {
    50: '#896cd1',
    500: '#4831bb',
    950: '#000000',
  },
}
SCSS
$custom: #4831bb;
$custom-light: #896cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4831bb",
  "rgb": {
    "r": 72,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 250,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.43642,
    "c": 0.20269,
    "h": 281.6
  },
  "luminance": 0.07162
}

Semantic roles & 50–950 ramp

primary
#4831BB
secondary
#BDC97F
accent
#E246C8
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4831BB

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

Preview Lab → · Contrast checker → · Palette generator →

#4831BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva