#4151A5#4151A5

#4151A5 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.136 H 272.0°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#4151A5
RGBrgb(65, 81, 165)
HSLhsl(230, 43%, 45%)
HSVhsv(230, 61%, 65%)
CMYKcmyk(60.6%, 50.9%, 0%, 35.3%)
CIE-LABlab(37.34, 20.29, -47.39)
CIE-LCHlch(37.34, 51.55, 293.18°)
OKLaboklab(46.75% 0.0048 -0.1356)
OKLCHoklch(46.75% 0.136 272)
XYZxyz(11.9117, 9.7243, 36.8393)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151A5 #A59541
analogous
#4183A5 #4151A5 #6341A5
triadic
#4151A5 #A54151 #51A541
tetradic
#4151A5 #A54183 #A59541 #41A563
square
#4151A5 #A54183 #A59541 #41A563
split-complementary
#4151A5 #A56341 #83A541
monochromatic
#1E264D #303B79 #4151A5 #6271C1 #8E99D2

Accessibility & contrast

On white

7.13
#4151A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4151A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4151A5
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151A5#FFFFFF#000000##FFFFFF
##4151A51.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245CA8
Deuteranopia (green-blind)
#0E54A3
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4151a5;
/* rgb */ color: rgb(65, 81, 165);
/* oklch */ color: oklch(46.8% 0.136 272.0);
Tailwind
colors: {
  custom: {
    50: '#7f81c0',
    500: '#4151a5',
    950: '#000000',
  },
}
SCSS
$custom: #4151a5;
$custom-light: #7f81c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4151a5",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 165
  },
  "hsl": {
    "h": 230.4,
    "s": 43.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46751,
    "c": 0.1357,
    "h": 272
  },
  "luminance": 0.09725
}

Semantic roles & 50–950 ramp

primary
#4151A5
secondary
#BEB484
accent
#BF55D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #4151A5

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

Preview Lab → · Contrast checker → · Palette generator →

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