#2852AE#2852AE

#2852AE is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.155 H 263.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#2852AE
RGBrgb(40, 82, 174)
HSLhsl(221, 63%, 42%)
HSVhsv(221, 77%, 68%)
CMYKcmyk(77%, 52.9%, 0%, 31.8%)
CIE-LABlab(37.00, 19.04, -53.35)
CIE-LCHlch(37.00, 56.65, 289.64°)
OKLaboklab(46.36% -0.0183 -0.1536)
OKLCHoklch(46.36% 0.155 263.2)
XYZxyz(11.5296, 9.5404, 41.2700)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852AE #AE8428
analogous
#2895AE #2852AE #4128AE
triadic
#2852AE #AE2852 #52AE28
tetradic
#2852AE #AE2895 #AE8428 #28AE41
square
#2852AE #AE2895 #AE8428 #28AE41
split-complementary
#2852AE #AE4128 #95AE28
monochromatic
#11234A #1D3B7C #2852AE #406ED3 #7294DF

Accessibility & contrast

On white

7.22
#2852AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2852AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2852AE
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852AE#FFFFFF#000000##FFFFFF
##2852AE1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105EB1
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2852ae;
/* rgb */ color: rgb(40, 82, 174);
/* oklch */ color: oklch(46.4% 0.155 263.2);
Tailwind
colors: {
  custom: {
    50: '#7682c7',
    500: '#2852ae',
    950: '#000000',
  },
}
SCSS
$custom: #2852ae;
$custom-light: #7682c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2852ae",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 174
  },
  "hsl": {
    "h": 221.194,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46358,
    "c": 0.15474,
    "h": 263.2
  },
  "luminance": 0.09542
}

Semantic roles & 50–950 ramp

primary
#2852AE
secondary
#C6AA6C
accent
#B242E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2852AE

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

Preview Lab → · Contrast checker → · Palette generator →

#2852AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva