#4A54CB#4A54CB

#4A54CB is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.8% C 0.182 H 274.3°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#4A54CB
RGBrgb(74, 84, 203)
HSLhsl(235, 55%, 54%)
HSVhsv(235, 64%, 80%)
CMYKcmyk(63.5%, 58.6%, 0%, 20.4%)
CIE-LABlab(41.39, 33.09, -63.13)
CIE-LCHlch(41.39, 71.28, 297.66°)
OKLaboklab(50.78% 0.0136 -0.1817)
OKLCHoklch(50.78% 0.182 274.3)
XYZxyz(16.7703, 12.1069, 57.9414)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A54CB #CBC14A
analogous
#4A95CB #4A54CB #814ACB
triadic
#4A54CB #CB4A54 #54CB4A
tetradic
#4A54CB #CB4A95 #CBC14A #4ACB81
square
#4A54CB #CB4A95 #CBC14A #4ACB81
split-complementary
#4A54CB #CB814A #95CB4A
monochromatic
#232978 #3039A8 #4A54CB #7A81D9 #A9AEE6

Accessibility & contrast

On white

6.14
#4A54CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4A54CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A54CB
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A54CB#FFFFFF#000000##FFFFFF
##4A54CB1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#007187
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4a54cb;
/* rgb */ color: rgb(74, 84, 203);
/* oklch */ color: oklch(50.8% 0.182 274.3);
Tailwind
colors: {
  custom: {
    50: '#8a84dc',
    500: '#4a54cb',
    950: '#000000',
  },
}
SCSS
$custom: #4a54cb;
$custom-light: #8a84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a54cb",
  "rgb": {
    "r": 74,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 235.349,
    "s": 55.365,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50784,
    "c": 0.18216,
    "h": 274.3
  },
  "luminance": 0.12108
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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