#4252CF#4252CF

#4252CF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.3% C 0.192 H 271.9°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#4252CF
RGBrgb(66, 82, 207)
HSLhsl(233, 59%, 54%)
HSVhsv(233, 68%, 81%)
CMYKcmyk(68.1%, 60.4%, 0%, 18.8%)
CIE-LABlab(40.73, 34.53, -66.53)
CIE-LCHlch(40.73, 74.96, 297.43°)
OKLaboklab(50.27% 0.0065 -0.1918)
OKLCHoklch(50.27% 0.192 271.9)
XYZxyz(16.5228, 11.6963, 60.4062)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4252CF #CFBF42
analogous
#4299CF #4252CF #7842CF
triadic
#4252CF #CF4252 #52CF42
tetradic
#4252CF #CF4299 #CFBF42 #42CF78
square
#4252CF #CF4299 #CFBF42 #42CF78
split-complementary
#4252CF #CF7842 #99CF42
monochromatic
#1F2978 #2B39A9 #4252CF #737FDB #A4ABE8

Accessibility & contrast

On white

6.29
#4252CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4252CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4252CF
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4252CF#FFFFFF#000000##FFFFFF
##4252CF1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#005ACD
Tritanopia (blue-blind)
#007189
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4252cf;
/* rgb */ color: rgb(66, 82, 207);
/* oklch */ color: oklch(50.3% 0.192 271.9);
Tailwind
colors: {
  custom: {
    50: '#8782df',
    500: '#4252cf',
    950: '#000000',
  },
}
SCSS
$custom: #4252cf;
$custom-light: #8782df;
$custom-dark: #000000;
JSON
{
  "hex": "#4252cf",
  "rgb": {
    "r": 66,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 233.191,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50268,
    "c": 0.19196,
    "h": 271.9
  },
  "luminance": 0.11698
}

Semantic roles & 50–950 ramp

primary
#4252CF
secondary
#D5CE98
accent
#D145E3
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4252CF

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

Preview Lab → · Contrast checker → · Palette generator →

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