#4052AC#4052AC

#4052AC is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.4% C 0.145 H 271.3°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#4052AC
RGBrgb(64, 82, 172)
HSLhsl(230, 46%, 46%)
HSVhsv(230, 63%, 67%)
CMYKcmyk(62.8%, 52.3%, 0%, 32.5%)
CIE-LABlab(38.03, 21.91, -50.46)
CIE-LCHlch(38.03, 55.01, 293.47°)
OKLaboklab(47.4% 0.0034 -0.1446)
OKLCHoklch(47.4% 0.145 271.3)
XYZxyz(12.5755, 10.1021, 40.3089)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4052AC #AC9A40
analogous
#4088AC #4052AC #6440AC
triadic
#4052AC #AC4052 #52AC40
tetradic
#4052AC #AC4088 #AC9A40 #40AC64
square
#4052AC #AC4088 #AC9A40 #40AC64
split-complementary
#4052AC #AC6440 #88AC40
monochromatic
#1F2753 #2F3D7F #4052AC #6474C5 #919CD6

Accessibility & contrast

On white

6.95
#4052AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4052AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4052AC
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4052AC#FFFFFF#000000##FFFFFF
##4052AC1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5EAF
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4052ac;
/* rgb */ color: rgb(64, 82, 172);
/* oklch */ color: oklch(47.4% 0.145 271.3);
Tailwind
colors: {
  custom: {
    50: '#8082c5',
    500: '#4052ac',
    950: '#000000',
  },
}
SCSS
$custom: #4052ac;
$custom-light: #8082c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4052ac",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 172
  },
  "hsl": {
    "h": 230,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47402,
    "c": 0.14469,
    "h": 271.3
  },
  "luminance": 0.10103
}

Semantic roles & 50–950 ramp

primary
#4052AC
secondary
#C1B787
accent
#C052D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4052AC

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

Preview Lab → · Contrast checker → · Palette generator →

#4052AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva