#4252AF#4252AF

#4252AF is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.148 H 272.2°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#4252AF
RGBrgb(66, 82, 175)
HSLhsl(231, 45%, 47%)
HSVhsv(231, 62%, 69%)
CMYKcmyk(62.3%, 53.1%, 0%, 31.4%)
CIE-LABlab(38.35, 23.33, -51.70)
CIE-LCHlch(38.35, 56.72, 294.29°)
OKLaboklab(47.75% 0.0058 -0.1483)
OKLCHoklch(47.75% 0.148 272.2)
XYZxyz(12.9993, 10.2869, 41.8497)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4252AF #AF9F42
analogous
#4288AF #4252AF #6942AF
triadic
#4252AF #AF4252 #52AF42
tetradic
#4252AF #AF4288 #AF9F42 #42AF69
square
#4252AF #AF4288 #AF9F42 #42AF69
split-complementary
#4252AF #AF6942 #88AF42
monochromatic
#202856 #313D83 #4252AF #6876C6 #959ED7

Accessibility & contrast

On white

6.87
#4252AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#4252AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4252AF
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4252AF#FFFFFF#000000##FFFFFF
##4252AF1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185FB2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4252af;
/* rgb */ color: rgb(66, 82, 175);
/* oklch */ color: oklch(47.7% 0.148 272.2);
Tailwind
colors: {
  custom: {
    50: '#8182c7',
    500: '#4252af',
    950: '#000000',
  },
}
SCSS
$custom: #4252af;
$custom-light: #8182c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4252af",
  "rgb": {
    "r": 66,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 231.193,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47746,
    "c": 0.14837,
    "h": 272.2
  },
  "luminance": 0.10288
}

Semantic roles & 50–950 ramp

primary
#4252AF
secondary
#C2BA8A
accent
#C253D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4252AF

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

Preview Lab → · Contrast checker → · Palette generator →

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