#4154CC#4154CC

#4154CC is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.3% C 0.186 H 271.2°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#4154CC
RGBrgb(65, 84, 204)
HSLhsl(232, 58%, 53%)
HSVhsv(232, 68%, 80%)
CMYKcmyk(68.1%, 58.8%, 0%, 20%)
CIE-LABlab(40.93, 32.08, -64.47)
CIE-LCHlch(40.93, 72.01, 296.46°)
OKLaboklab(50.33% 0.004 -0.1858)
OKLCHoklch(50.33% 0.186 271.2)
XYZxyz(16.2457, 11.8226, 58.5409)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4154CC #CCB941
analogous
#4199CC #4154CC #7441CC
triadic
#4154CC #CC4154 #54CC41
tetradic
#4154CC #CC4199 #CCB941 #41CC74
square
#4154CC #CC4199 #CCB941 #41CC74
split-complementary
#4154CC #CC7441 #99CC41
monochromatic
#1F2B74 #2C3CA4 #4154CC #717FD9 #A1ABE6

Accessibility & contrast

On white

6.24
#4154CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4154CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4154CC
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4154CC#FFFFFF#000000##FFFFFF
##4154CC1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#007288
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4154cc;
/* rgb */ color: rgb(65, 84, 204);
/* oklch */ color: oklch(50.3% 0.186 271.2);
Tailwind
colors: {
  custom: {
    50: '#8684dc',
    500: '#4154cc',
    950: '#000000',
  },
}
SCSS
$custom: #4154cc;
$custom-light: #8684dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4154cc",
  "rgb": {
    "r": 65,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 231.799,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50331,
    "c": 0.18584,
    "h": 271.2
  },
  "luminance": 0.11824
}

Semantic roles & 50–950 ramp

primary
#4154CC
secondary
#D3CA96
accent
#CC47E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #4154CC

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

Preview Lab → · Contrast checker → · Palette generator →

#4154CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva