#4152A2#4152A2

#4152A2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.7% C 0.130 H 271.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#4152A2
RGBrgb(65, 82, 162)
HSLhsl(229, 43%, 45%)
HSVhsv(229, 60%, 64%)
CMYKcmyk(59.9%, 49.4%, 0%, 36.5%)
CIE-LABlab(37.42, 18.59, -45.48)
CIE-LCHlch(37.42, 49.13, 292.23°)
OKLaboklab(46.75% 0.0034 -0.13)
OKLCHoklch(46.75% 0.13 271.5)
XYZxyz(11.7167, 9.7661, 35.4430)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152A2 #A29141
analogous
#4182A2 #4152A2 #6141A2
triadic
#4152A2 #A24152 #52A241
tetradic
#4152A2 #A24182 #A29141 #41A261
square
#4152A2 #A24182 #A29141 #41A261
split-complementary
#4152A2 #A26141 #82A241
monochromatic
#1E264B #2F3C76 #4152A2 #6171BF #8C98D1

Accessibility & contrast

On white

7.11
#4152A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4152A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4152A2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152A2#FFFFFF#000000##FFFFFF
##4152A21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#1954A0
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4152a2;
/* rgb */ color: rgb(65, 82, 162);
/* oklch */ color: oklch(46.7% 0.130 271.5);
Tailwind
colors: {
  custom: {
    50: '#7e82be',
    500: '#4152a2',
    950: '#000000',
  },
}
SCSS
$custom: #4152a2;
$custom-light: #7e82be;
$custom-dark: #000000;
JSON
{
  "hex": "#4152a2",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 229.485,
    "s": 42.731,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46746,
    "c": 0.13002,
    "h": 271.5
  },
  "luminance": 0.09767
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4152A2

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

Preview Lab → · Contrast checker → · Palette generator →

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