#4152CB#4152CB

#4152CB is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.9% C 0.187 H 271.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#4152CB
RGBrgb(65, 82, 203)
HSLhsl(233, 57%, 53%)
HSVhsv(233, 68%, 80%)
CMYKcmyk(68%, 59.6%, 0%, 20.4%)
CIE-LABlab(40.36, 33.00, -64.83)
CIE-LCHlch(40.36, 72.74, 296.98°)
OKLaboklab(49.88% 0.0055 -0.1869)
OKLCHoklch(49.88% 0.187 271.7)
XYZxyz(15.9731, 11.4687, 57.8602)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4152CB #CBBA41
analogous
#4197CB #4152CB #7541CB
triadic
#4152CB #CB4152 #52CB41
tetradic
#4152CB #CB4197 #CBBA41 #41CB75
square
#4152CB #CB4197 #CBBA41 #41CB75
split-complementary
#4152CB #CB7541 #97CB41
monochromatic
#1F2A72 #2C3BA2 #4152CB #717ED8 #A1AAE5

Accessibility & contrast

On white

6.38
#4152CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#4152CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4152CB
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4152CB#FFFFFF#000000##FFFFFF
##4152CB1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#0059C9
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4152cb;
/* rgb */ color: rgb(65, 82, 203);
/* oklch */ color: oklch(49.9% 0.187 271.7);
Tailwind
colors: {
  custom: {
    50: '#8682dc',
    500: '#4152cb',
    950: '#000000',
  },
}
SCSS
$custom: #4152cb;
$custom-light: #8682dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4152cb",
  "rgb": {
    "r": 65,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 232.609,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49881,
    "c": 0.18695,
    "h": 271.7
  },
  "luminance": 0.1147
}

Semantic roles & 50–950 ramp

primary
#4152CB
secondary
#D2CA96
accent
#CD48E0
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #4152CB

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

Preview Lab → · Contrast checker → · Palette generator →

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