#4B40C2#4B40C2

#4B40C2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.7% C 0.194 H 279.5°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#4B40C2
RGBrgb(75, 64, 194)
HSLhsl(245, 52%, 51%)
HSVhsv(245, 67%, 76%)
CMYKcmyk(61.3%, 67%, 0%, 23.9%)
CIE-LABlab(36.09, 42.44, -66.53)
CIE-LCHlch(36.09, 78.91, 302.53°)
OKLaboklab(46.7% 0.0322 -0.1917)
OKLCHoklch(46.7% 0.194 279.5)
XYZxyz(14.4696, 9.0566, 52.0141)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40C2 #B7C240
analogous
#4076C2 #4B40C2 #8C40C2
triadic
#4B40C2 #C24B40 #40C24B
tetradic
#4B40C2 #C24076 #B7C240 #40C28C
square
#4B40C2 #C24076 #B7C240 #40C28C
split-complementary
#4B40C2 #C28C40 #76C240
monochromatic
#272167 #383095 #4B40C2 #776ED1 #A29DE0

Accessibility & contrast

On white

7.47
#4B40C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4B40C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40C2
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40C2#FFFFFF#000000##FFFFFF
##4B40C21.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4b40c2;
/* rgb */ color: rgb(75, 64, 194);
/* oklch */ color: oklch(46.7% 0.194 279.5);
Tailwind
colors: {
  custom: {
    50: '#8a76d5',
    500: '#4b40c2',
    950: '#000000',
  },
}
SCSS
$custom: #4b40c2;
$custom-light: #8a76d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40c2",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 245.077,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46701,
    "c": 0.1944,
    "h": 279.5
  },
  "luminance": 0.09058
}

Semantic roles & 50–950 ramp

primary
#4B40C2
secondary
#C7CC92
accent
#DB4DCF
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4B40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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