#4152A4#4152A4

#4152A4 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.133 H 271.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#4152A4
RGBrgb(65, 82, 164)
HSLhsl(230, 43%, 45%)
HSVhsv(230, 60%, 64%)
CMYKcmyk(60.4%, 50%, 0%, 35.7%)
CIE-LABlab(37.55, 19.29, -46.46)
CIE-LCHlch(37.55, 50.31, 292.54°)
OKLaboklab(46.89% 0.0037 -0.1329)
OKLCHoklch(46.89% 0.133 271.6)
XYZxyz(11.8959, 9.8378, 36.3868)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152A4 #A49341
analogous
#4183A4 #4152A4 #6241A4
triadic
#4152A4 #A44152 #52A441
tetradic
#4152A4 #A44183 #A49341 #41A462
square
#4152A4 #A44183 #A49341 #41A462
split-complementary
#4152A4 #A46241 #83A441
monochromatic
#1E264C #303C78 #4152A4 #6272C1 #8D99D2

Accessibility & contrast

On white

7.08
#4152A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4152A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4152A4
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152A4#FFFFFF#000000##FFFFFF
##4152A41.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285DA7
Deuteranopia (green-blind)
#1554A2
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4152a4;
/* rgb */ color: rgb(65, 82, 164);
/* oklch */ color: oklch(46.9% 0.133 271.6);
Tailwind
colors: {
  custom: {
    50: '#7f82bf',
    500: '#4152a4',
    950: '#000000',
  },
}
SCSS
$custom: #4152a4;
$custom-light: #7f82bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4152a4",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 164
  },
  "hsl": {
    "h": 229.697,
    "s": 43.231,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46887,
    "c": 0.13292,
    "h": 271.6
  },
  "luminance": 0.09839
}

Semantic roles & 50–950 ramp

primary
#4152A4
secondary
#BDB384
accent
#BD55D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #4152A4

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

Preview Lab → · Contrast checker → · Palette generator →

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