#4F54CB#4F54CB

#4F54CB is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.1% C 0.181 H 276.1°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#4F54CB
RGBrgb(79, 84, 203)
HSLhsl(238, 54%, 55%)
HSVhsv(238, 61%, 80%)
CMYKcmyk(61.1%, 58.6%, 0%, 20.4%)
CIE-LABlab(41.71, 33.90, -62.59)
CIE-LCHlch(41.71, 71.18, 298.44°)
OKLaboklab(51.11% 0.0192 -0.1799)
OKLCHoklch(51.11% 0.181 276.1)
XYZxyz(17.1708, 12.3134, 57.9602)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F54CB #CBC64F
analogous
#4F92CB #4F54CB #884FCB
triadic
#4F54CB #CB4F54 #54CB4F
tetradic
#4F54CB #CB4F92 #CBC64F #4FCB88
square
#4F54CB #CB4F92 #CBC64F #4FCB88
split-complementary
#4F54CB #CB884F #92CB4F
monochromatic
#24287B #3237AA #4F54CB #7E82D9 #ADB0E7

Accessibility & contrast

On white

6.06
#4F54CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#4F54CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F54CB
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F54CB#FFFFFF#000000##FFFFFF
##4F54CB1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f54cb;
/* rgb */ color: rgb(79, 84, 203);
/* oklch */ color: oklch(51.1% 0.181 276.1);
Tailwind
colors: {
  custom: {
    50: '#8c84dc',
    500: '#4f54cb',
    950: '#000000',
  },
}
SCSS
$custom: #4f54cb;
$custom-light: #8c84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f54cb",
  "rgb": {
    "r": 79,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 237.581,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51109,
    "c": 0.18095,
    "h": 276.1
  },
  "luminance": 0.12315
}

Semantic roles & 50–950 ramp

primary
#4F54CB
secondary
#D5D3A1
accent
#D84ADE
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4F54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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