#4151A4#4151A4

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

Color values

HEX#4151A4
RGBrgb(65, 81, 164)
HSLhsl(230, 43%, 45%)
HSVhsv(230, 60%, 64%)
CMYKcmyk(60.4%, 50.6%, 0%, 35.7%)
CIE-LABlab(37.28, 19.94, -46.90)
CIE-LCHlch(37.28, 50.96, 293.03°)
OKLaboklab(46.68% 0.0047 -0.1342)
OKLCHoklch(46.68% 0.134 272)
XYZxyz(11.8210, 9.6881, 36.3618)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151A4 #A49441
analogous
#4183A4 #4151A4 #6341A4
triadic
#4151A4 #A44151 #51A441
tetradic
#4151A4 #A44183 #A49441 #41A463
square
#4151A4 #A44183 #A49441 #41A463
split-complementary
#4151A4 #A46341 #83A441
monochromatic
#1E264C #303B78 #4151A4 #6271C1 #8D98D2

Accessibility & contrast

On white

7.15
#4151A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4151A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4151A4
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151A4#FFFFFF#000000##FFFFFF
##4151A41.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255CA7
Deuteranopia (green-blind)
#1154A2
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4151a4;
/* rgb */ color: rgb(65, 81, 164);
/* oklch */ color: oklch(46.7% 0.134 272.0);
Tailwind
colors: {
  custom: {
    50: '#7f81bf',
    500: '#4151a4',
    950: '#000000',
  },
}
SCSS
$custom: #4151a4;
$custom-light: #7f81bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4151a4",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 164
  },
  "hsl": {
    "h": 230.303,
    "s": 43.231,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4668,
    "c": 0.13425,
    "h": 272
  },
  "luminance": 0.09689
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4151A4

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

Preview Lab → · Contrast checker → · Palette generator →

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