#4152CA#4152CA

#4152CA is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.8% C 0.186 H 271.7°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#4152CA
RGBrgb(65, 82, 202)
HSLhsl(233, 56%, 52%)
HSVhsv(233, 68%, 79%)
CMYKcmyk(67.8%, 59.4%, 0%, 20.8%)
CIE-LABlab(40.28, 32.65, -64.37)
CIE-LCHlch(40.28, 72.18, 296.89°)
OKLaboklab(49.8% 0.0056 -0.1855)
OKLCHoklch(49.8% 0.186 271.7)
XYZxyz(15.8543, 11.4212, 57.2346)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152CA #CAB941
analogous
#4196CA #4152CA #7541CA
triadic
#4152CA #CA4152 #52CA41
tetradic
#4152CA #CA4196 #CAB941 #41CA75
square
#4152CA #CA4196 #CAB941 #41CA75
split-complementary
#4152CA #CA7541 #96CA41
monochromatic
#202A71 #2D3BA1 #4152CA #717ED7 #A1A9E5

Accessibility & contrast

On white

6.39
#4152CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#4152CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4152CA
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152CA#FFFFFF#000000##FFFFFF
##4152CA1.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0059C8
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4152ca;
/* rgb */ color: rgb(65, 82, 202);
/* oklch */ color: oklch(49.8% 0.186 271.7);
Tailwind
colors: {
  custom: {
    50: '#8682db',
    500: '#4152ca',
    950: '#000000',
  },
}
SCSS
$custom: #4152ca;
$custom-light: #8682db;
$custom-dark: #000000;
JSON
{
  "hex": "#4152ca",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 232.555,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49799,
    "c": 0.18563,
    "h": 271.7
  },
  "luminance": 0.11423
}

Semantic roles & 50–950 ramp

primary
#4152CA
secondary
#D1CA96
accent
#CD48E0
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4152CA

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

Preview Lab → · Contrast checker → · Palette generator →

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