#4851CA#4851CA

#4851CA is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.0% C 0.185 H 274.3°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#4851CA
RGBrgb(72, 81, 202)
HSLhsl(236, 55%, 54%)
HSVhsv(236, 64%, 79%)
CMYKcmyk(64.4%, 59.9%, 0%, 20.8%)
CIE-LABlab(40.45, 34.31, -64.08)
CIE-LCHlch(40.45, 72.68, 298.16°)
OKLaboklab(50.04% 0.0139 -0.1845)
OKLCHoklch(50.04% 0.185 274.3)
XYZxyz(16.2721, 11.5254, 57.2328)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4851CA #CAC148
analogous
#4892CA #4851CA #8048CA
triadic
#4851CA #CA4851 #51CA48
tetradic
#4851CA #CA4892 #CAC148 #48CA80
square
#4851CA #CA4892 #CAC148 #48CA80
split-complementary
#4851CA #CA8048 #92CA48
monochromatic
#222876 #3038A5 #4851CA #777ED8 #A7ABE5

Accessibility & contrast

On white

6.35
#4851CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#4851CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4851CA
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4851CA#FFFFFF#000000##FFFFFF
##4851CA1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4851ca;
/* rgb */ color: rgb(72, 81, 202);
/* oklch */ color: oklch(50.0% 0.185 274.3);
Tailwind
colors: {
  custom: {
    50: '#8982db',
    500: '#4851ca',
    950: '#000000',
  },
}
SCSS
$custom: #4851ca;
$custom-light: #8982db;
$custom-dark: #000000;
JSON
{
  "hex": "#4851ca",
  "rgb": {
    "r": 72,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 235.846,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50035,
    "c": 0.18503,
    "h": 274.3
  },
  "luminance": 0.11527
}

Semantic roles & 50–950 ramp

primary
#4851CA
secondary
#D3CF9B
accent
#D449DE
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4851CA

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

Preview Lab → · Contrast checker → · Palette generator →

#4851CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva