#4152AF#4152AF

#4152AF is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.149 H 271.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#4152AF
RGBrgb(65, 82, 175)
HSLhsl(231, 46%, 47%)
HSVhsv(231, 63%, 69%)
CMYKcmyk(62.9%, 53.1%, 0%, 31.4%)
CIE-LABlab(38.29, 23.15, -51.80)
CIE-LCHlch(38.29, 56.74, 294.08°)
OKLaboklab(47.69% 0.0047 -0.1486)
OKLCHoklch(47.69% 0.149 271.8)
XYZxyz(12.9325, 10.2525, 41.8465)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152AF #AF9E41
analogous
#4189AF #4152AF #6741AF
triadic
#4152AF #AF4152 #52AF41
tetradic
#4152AF #AF4189 #AF9E41 #41AF67
square
#4152AF #AF4189 #AF9E41 #41AF67
split-complementary
#4152AF #AF6741 #89AF41
monochromatic
#202856 #303D82 #4152AF #6776C6 #939ED7

Accessibility & contrast

On white

6.88
#4152AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4152AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4152AF
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152AF#FFFFFF#000000##FFFFFF
##4152AF1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185FB2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4152af;
/* rgb */ color: rgb(65, 82, 175);
/* oklch */ color: oklch(47.7% 0.149 271.8);
Tailwind
colors: {
  custom: {
    50: '#8182c7',
    500: '#4152af',
    950: '#000000',
  },
}
SCSS
$custom: #4152af;
$custom-light: #8182c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4152af",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 230.727,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47685,
    "c": 0.14865,
    "h": 271.8
  },
  "luminance": 0.10254
}

Semantic roles & 50–950 ramp

primary
#4152AF
secondary
#C2BA89
accent
#C152D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4152AF

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

Preview Lab → · Contrast checker → · Palette generator →

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