#4B40C0#4B40C0

#4B40C0 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.5% C 0.192 H 279.7°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#4B40C0
RGBrgb(75, 64, 192)
HSLhsl(245, 50%, 50%)
HSVhsv(245, 67%, 75%)
CMYKcmyk(60.9%, 66.7%, 0%, 24.7%)
CIE-LABlab(35.92, 41.80, -65.64)
CIE-LCHlch(35.92, 77.82, 302.49°)
OKLaboklab(46.52% 0.0325 -0.1891)
OKLCHoklch(46.52% 0.192 279.7)
XYZxyz(14.2465, 8.9674, 50.8391)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40C0 #B5C040
analogous
#4075C0 #4B40C0 #8B40C0
triadic
#4B40C0 #C04B40 #40C04B
tetradic
#4B40C0 #C04075 #B5C040 #40C08B
square
#4B40C0 #C04075 #B5C040 #40C08B
split-complementary
#4B40C0 #C08B40 #75C040
monochromatic
#272164 #393092 #4B40C0 #766ECF #A29CDE

Accessibility & contrast

On white

7.52
#4B40C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4B40C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40C0
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40C0#FFFFFF#000000##FFFFFF
##4B40C01.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#004FBE
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4b40c0;
/* rgb */ color: rgb(75, 64, 192);
/* oklch */ color: oklch(46.5% 0.192 279.7);
Tailwind
colors: {
  custom: {
    50: '#8a76d4',
    500: '#4b40c0',
    950: '#000000',
  },
}
SCSS
$custom: #4b40c0;
$custom-light: #8a76d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40c0",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 245.156,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46524,
    "c": 0.19186,
    "h": 279.7
  },
  "luminance": 0.08968
}

Semantic roles & 50–950 ramp

primary
#4B40C0
secondary
#C6CB91
accent
#DA4ECE
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4B40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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