#4151A2#4151A2

#4151A2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.131 H 272.0°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#4151A2
RGBrgb(65, 81, 162)
HSLhsl(230, 43%, 45%)
HSVhsv(230, 60%, 64%)
CMYKcmyk(59.9%, 50%, 0%, 36.5%)
CIE-LABlab(37.15, 19.24, -45.92)
CIE-LCHlch(37.15, 49.79, 292.73°)
OKLaboklab(46.54% 0.0045 -0.1313)
OKLCHoklch(46.54% 0.131 272)
XYZxyz(11.6418, 9.6164, 35.4181)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151A2 #A29241
analogous
#4182A2 #4151A2 #6241A2
triadic
#4151A2 #A24151 #51A241
tetradic
#4151A2 #A24182 #A29241 #41A262
square
#4151A2 #A24182 #A29241 #41A262
split-complementary
#4151A2 #A26241 #82A241
monochromatic
#1E254B #2F3B76 #4151A2 #6170BF #8C98D1

Accessibility & contrast

On white

7.18
#4151A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#4151A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4151A2
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151A2#FFFFFF#000000##FFFFFF
##4151A21.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA5
Deuteranopia (green-blind)
#1653A0
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4151a2;
/* rgb */ color: rgb(65, 81, 162);
/* oklch */ color: oklch(46.5% 0.131 272.0);
Tailwind
colors: {
  custom: {
    50: '#7e81be',
    500: '#4151a2',
    950: '#000000',
  },
}
SCSS
$custom: #4151a2;
$custom-light: #7e81be;
$custom-dark: #000000;
JSON
{
  "hex": "#4151a2",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 230.103,
    "s": 42.731,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46538,
    "c": 0.13136,
    "h": 272
  },
  "luminance": 0.09617
}

Semantic roles & 50–950 ramp

primary
#4151A2
secondary
#BCB383
accent
#BE55D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #4151A2

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

Preview Lab → · Contrast checker → · Palette generator →

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