#4A54CC#4A54CC

#4A54CC is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.9% C 0.183 H 274.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#4A54CC
RGBrgb(74, 84, 204)
HSLhsl(235, 56%, 55%)
HSVhsv(235, 64%, 80%)
CMYKcmyk(63.7%, 58.8%, 0%, 20%)
CIE-LABlab(41.46, 33.43, -63.59)
CIE-LCHlch(41.46, 71.84, 297.73°)
OKLaboklab(50.86% 0.0136 -0.183)
OKLCHoklch(50.86% 0.183 274.2)
XYZxyz(16.8898, 12.1547, 58.5711)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A54CC #CCC24A
analogous
#4A95CC #4A54CC #814ACC
triadic
#4A54CC #CC4A54 #54CC4A
tetradic
#4A54CC #CC4A95 #CCC24A #4ACC81
square
#4A54CC #CC4A95 #CCC24A #4ACC81
split-complementary
#4A54CC #CC814A #95CC4A
monochromatic
#222979 #3039A9 #4A54CC #7A81D9 #A9AEE7

Accessibility & contrast

On white

6.12
#4A54CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#4A54CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A54CC
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A54CC#FFFFFF#000000##FFFFFF
##4A54CC1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#005CCA
Tritanopia (blue-blind)
#007188
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4a54cc;
/* rgb */ color: rgb(74, 84, 204);
/* oklch */ color: oklch(50.9% 0.183 274.2);
Tailwind
colors: {
  custom: {
    50: '#8a84dc',
    500: '#4a54cc',
    950: '#000000',
  },
}
SCSS
$custom: #4a54cc;
$custom-light: #8a84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a54cc",
  "rgb": {
    "r": 74,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 235.385,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50863,
    "c": 0.18349,
    "h": 274.2
  },
  "luminance": 0.12156
}

Semantic roles & 50–950 ramp

primary
#4A54CC
secondary
#D4D09D
accent
#D448DF
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4A54CC

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

Preview Lab → · Contrast checker → · Palette generator →

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