#4154AB#4154AB

#4154AB is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.8% C 0.140 H 271.0°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#4154AB
RGBrgb(65, 84, 171)
HSLhsl(229, 45%, 46%)
HSVhsv(229, 62%, 67%)
CMYKcmyk(62%, 50.9%, 0%, 32.9%)
CIE-LABlab(38.56, 20.45, -49.01)
CIE-LCHlch(38.56, 53.10, 292.65°)
OKLaboklab(47.8% 0.0023 -0.1403)
OKLCHoklch(47.8% 0.14 271)
XYZxyz(12.6985, 10.4037, 39.8591)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4154AB #AB9841
analogous
#4189AB #4154AB #6341AB
triadic
#4154AB #AB4154 #54AB41
tetradic
#4154AB #AB4189 #AB9841 #41AB63
square
#4154AB #AB4189 #AB9841 #41AB63
split-complementary
#4154AB #AB6341 #89AB41
monochromatic
#1F2852 #303E7F #4154AB #6576C4 #919DD5

Accessibility & contrast

On white

6.82
#4154AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#4154AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4154AB
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4154AB#FFFFFF#000000##FFFFFF
##4154AB1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2460AE
Deuteranopia (green-blind)
#0956A9
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4154ab;
/* rgb */ color: rgb(65, 84, 171);
/* oklch */ color: oklch(47.8% 0.140 271.0);
Tailwind
colors: {
  custom: {
    50: '#8083c5',
    500: '#4154ab',
    950: '#000000',
  },
}
SCSS
$custom: #4154ab;
$custom-light: #8083c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4154ab",
  "rgb": {
    "r": 65,
    "g": 84,
    "b": 171
  },
  "hsl": {
    "h": 229.245,
    "s": 44.915,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47798,
    "c": 0.14035,
    "h": 271
  },
  "luminance": 0.10405
}

Semantic roles & 50–950 ramp

primary
#4154AB
secondary
#C1B687
accent
#BD53D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4154AB

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

Preview Lab → · Contrast checker → · Palette generator →

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