#4154C1#4154C1

#4154C1 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.5% C 0.171 H 271.3°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#4154C1
RGBrgb(65, 84, 193)
HSLhsl(231, 51%, 51%)
HSVhsv(231, 66%, 76%)
CMYKcmyk(66.3%, 56.5%, 0%, 24.3%)
CIE-LABlab(40.10, 28.21, -59.44)
CIE-LCHlch(40.10, 65.79, 295.39°)
OKLaboklab(49.45% 0.0038 -0.171)
OKLCHoklch(49.45% 0.171 271.3)
XYZxyz(14.9727, 11.3133, 51.8364)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4154C1 #C1AE41
analogous
#4194C1 #4154C1 #6E41C1
triadic
#4154C1 #C14154 #54C141
tetradic
#4154C1 #C14194 #C1AE41 #41C16E
square
#4154C1 #C14194 #C1AE41 #41C16E
split-complementary
#4154C1 #C16E41 #94C141
monochromatic
#212C66 #303F94 #4154C1 #6F7ED0 #9DA7DF

Accessibility & contrast

On white

6.44
#4154C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#4154C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4154C1
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4154C1#FFFFFF#000000##FFFFFF
##4154C11.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C5
Deuteranopia (green-blind)
#0059BF
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4154c1;
/* rgb */ color: rgb(65, 84, 193);
/* oklch */ color: oklch(49.5% 0.171 271.3);
Tailwind
colors: {
  custom: {
    50: '#8483d4',
    500: '#4154c1',
    950: '#000000',
  },
}
SCSS
$custom: #4154c1;
$custom-light: #8483d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4154c1",
  "rgb": {
    "r": 65,
    "g": 84,
    "b": 193
  },
  "hsl": {
    "h": 231.094,
    "s": 50.794,
    "l": 50.588
  },
  "oklch": {
    "l": 0.49452,
    "c": 0.17105,
    "h": 271.3
  },
  "luminance": 0.11315
}

Semantic roles & 50–950 ramp

primary
#4154C1
secondary
#CBC392
accent
#C54EDA
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4154C1

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

Preview Lab → · Contrast checker → · Palette generator →

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