#4252C4#4252C4

#4252C4 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.4% C 0.177 H 272.1°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#4252C4
RGBrgb(66, 82, 196)
HSLhsl(233, 52%, 51%)
HSVhsv(233, 66%, 77%)
CMYKcmyk(66.3%, 58.2%, 0%, 23.1%)
CIE-LABlab(39.88, 30.69, -61.55)
CIE-LCHlch(39.88, 68.78, 296.51°)
OKLaboklab(49.37% 0.0066 -0.1772)
OKLCHoklch(49.37% 0.177 272.1)
XYZxyz(15.2245, 11.1770, 53.5689)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4252C4 #C4B442
analogous
#4293C4 #4252C4 #7342C4
triadic
#4252C4 #C44252 #52C442
tetradic
#4252C4 #C44293 #C4B442 #42C473
square
#4252C4 #C44293 #C4B442 #42C473
split-complementary
#4252C4 #C47342 #93C442
monochromatic
#212A6A #303D99 #4252C4 #717DD3 #9FA7E1

Accessibility & contrast

On white

6.49
#4252C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#4252C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4252C4
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4252C4#FFFFFF#000000##FFFFFF
##4252C41.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#0058C2
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4252c4;
/* rgb */ color: rgb(66, 82, 196);
/* oklch */ color: oklch(49.4% 0.177 272.1);
Tailwind
colors: {
  custom: {
    50: '#8582d7',
    500: '#4252c4',
    950: '#000000',
  },
}
SCSS
$custom: #4252c4;
$custom-light: #8582d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4252c4",
  "rgb": {
    "r": 66,
    "g": 82,
    "b": 196
  },
  "hsl": {
    "h": 232.615,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49369,
    "c": 0.17734,
    "h": 272.1
  },
  "luminance": 0.11178
}

Semantic roles & 50–950 ramp

primary
#4252C4
secondary
#CEC794
accent
#CA4CDC
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4252C4

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

Preview Lab → · Contrast checker → · Palette generator →

#4252C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva