#4151B2#4151B2

#4151B2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.7% C 0.154 H 272.2°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#4151B2
RGBrgb(65, 81, 178)
HSLhsl(232, 47%, 48%)
HSVhsv(232, 63%, 70%)
CMYKcmyk(63.5%, 54.5%, 0%, 30.2%)
CIE-LABlab(38.24, 24.86, -53.66)
CIE-LCHlch(38.24, 59.14, 294.85°)
OKLaboklab(47.71% 0.0059 -0.1541)
OKLCHoklch(47.71% 0.154 272.2)
XYZxyz(13.1556, 10.2219, 43.3906)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151B2 #B2A241
analogous
#418AB2 #4151B2 #6941B2
triadic
#4151B2 #B24151 #51B241
tetradic
#4151B2 #B2418A #B2A241 #41B269
square
#4151B2 #B2418A #B2A241 #41B269
split-complementary
#4151B2 #B26941 #8AB241
monochromatic
#202858 #313D85 #4151B2 #6876C8 #959FD8

Accessibility & contrast

On white

6.90
#4151B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#4151B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151B2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151B2#FFFFFF#000000##FFFFFF
##4151B21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5FB5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4151b2;
/* rgb */ color: rgb(65, 81, 178);
/* oklch */ color: oklch(47.7% 0.154 272.2);
Tailwind
colors: {
  custom: {
    50: '#8181ca',
    500: '#4151b2',
    950: '#000000',
  },
}
SCSS
$custom: #4151b2;
$custom-light: #8181ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4151b2",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 231.504,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47711,
    "c": 0.15418,
    "h": 272.2
  },
  "luminance": 0.10223
}

Semantic roles & 50–950 ramp

primary
#4151B2
secondary
#C4BC8B
accent
#C352D6
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4151B2

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

Preview Lab → · Contrast checker → · Palette generator →

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