#4154B2#4154B2

#4154B2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.3% C 0.150 H 271.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#4154B2
RGBrgb(65, 84, 178)
HSLhsl(230, 47%, 48%)
HSVhsv(230, 63%, 70%)
CMYKcmyk(63.5%, 52.8%, 0%, 30.2%)
CIE-LABlab(39.03, 22.92, -52.38)
CIE-LCHlch(39.03, 57.17, 293.63°)
OKLaboklab(48.31% 0.003 -0.1502)
OKLCHoklch(48.31% 0.15 271.1)
XYZxyz(13.3835, 10.6777, 43.4666)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4154B2 #B29F41
analogous
#418CB2 #4154B2 #6741B2
triadic
#4154B2 #B24154 #54B241
tetradic
#4154B2 #B2418C #B29F41 #41B267
square
#4154B2 #B2418C #B29F41 #41B267
split-complementary
#4154B2 #B26741 #8CB241
monochromatic
#202A58 #313F85 #4154B2 #6878C8 #95A0D8

Accessibility & contrast

On white

6.70
#4154B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#4154B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4154B2
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4154B2#FFFFFF#000000##FFFFFF
##4154B21.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B5
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4154b2;
/* rgb */ color: rgb(65, 84, 178);
/* oklch */ color: oklch(48.3% 0.150 271.1);
Tailwind
colors: {
  custom: {
    50: '#8183ca',
    500: '#4154b2',
    950: '#000000',
  },
}
SCSS
$custom: #4154b2;
$custom-light: #8183ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4154b2",
  "rgb": {
    "r": 65,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 229.912,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48309,
    "c": 0.15028,
    "h": 271.1
  },
  "luminance": 0.10679
}

Semantic roles & 50–950 ramp

primary
#4154B2
secondary
#C4BA8B
accent
#C052D6
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4154B2

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

Preview Lab → · Contrast checker → · Palette generator →

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