#4154C5#4154C5

#4154C5 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.8% C 0.176 H 271.3°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#4154C5
RGBrgb(65, 84, 197)
HSLhsl(231, 53%, 51%)
HSVhsv(231, 67%, 77%)
CMYKcmyk(67%, 57.4%, 0%, 22.7%)
CIE-LABlab(40.40, 29.62, -61.28)
CIE-LCHlch(40.40, 68.06, 295.80°)
OKLaboklab(49.77% 0.0039 -0.1764)
OKLCHoklch(49.77% 0.176 271.3)
XYZxyz(15.4249, 11.4942, 54.2182)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4154C5 #C5B241
analogous
#4196C5 #4154C5 #7041C5
triadic
#4154C5 #C54154 #54C541
tetradic
#4154C5 #C54196 #C5B241 #41C570
square
#4154C5 #C54196 #C5B241 #41C570
split-complementary
#4154C5 #C57041 #96C541
monochromatic
#212B6B #2F3E9A #4154C5 #707ED3 #9FA8E2

Accessibility & contrast

On white

6.37
#4154C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#4154C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4154C5
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4154C5#FFFFFF#000000##FFFFFF
##4154C51.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C9
Deuteranopia (green-blind)
#0059C3
Tritanopia (blue-blind)
#007084
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4154c5;
/* rgb */ color: rgb(65, 84, 197);
/* oklch */ color: oklch(49.8% 0.176 271.3);
Tailwind
colors: {
  custom: {
    50: '#8583d7',
    500: '#4154c5',
    950: '#000000',
  },
}
SCSS
$custom: #4154c5;
$custom-light: #8583d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4154c5",
  "rgb": {
    "r": 65,
    "g": 84,
    "b": 197
  },
  "hsl": {
    "h": 231.364,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49768,
    "c": 0.17647,
    "h": 271.3
  },
  "luminance": 0.11496
}

Semantic roles & 50–950 ramp

primary
#4154C5
secondary
#CEC694
accent
#C84BDD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4154C5

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

Preview Lab → · Contrast checker → · Palette generator →

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