#2852AC#2852AC

#2852AC is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.2% C 0.152 H 263.0°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#2852AC
RGBrgb(40, 82, 172)
HSLhsl(221, 62%, 42%)
HSVhsv(221, 77%, 67%)
CMYKcmyk(76.7%, 52.3%, 0%, 32.5%)
CIE-LABlab(36.86, 18.27, -52.40)
CIE-LCHlch(36.86, 55.49, 289.22°)
OKLaboklab(46.2% -0.0185 -0.1508)
OKLCHoklch(46.2% 0.152 263)
XYZxyz(11.3361, 9.4630, 40.2508)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852AC #AC8228
analogous
#2894AC #2852AC #4028AC
triadic
#2852AC #AC2852 #52AC28
tetradic
#2852AC #AC2894 #AC8228 #28AC40
square
#2852AC #AC2894 #AC8228 #28AC40
split-complementary
#2852AC #AC4028 #94AC28
monochromatic
#112349 #1C3A7A #2852AC #3F6ED2 #7193DE

Accessibility & contrast

On white

7.26
#2852AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2852AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2852AC
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852AC#FFFFFF#000000##FFFFFF
##2852AC1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155DAF
Deuteranopia (green-blind)
#0051AA
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2852ac;
/* rgb */ color: rgb(40, 82, 172);
/* oklch */ color: oklch(46.2% 0.152 263.0);
Tailwind
colors: {
  custom: {
    50: '#7682c5',
    500: '#2852ac',
    950: '#000000',
  },
}
SCSS
$custom: #2852ac;
$custom-light: #7682c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2852ac",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 172
  },
  "hsl": {
    "h": 220.909,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46203,
    "c": 0.15197,
    "h": 263
  },
  "luminance": 0.09464
}

Semantic roles & 50–950 ramp

primary
#2852AC
secondary
#C5A86B
accent
#B242E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2852AC

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

Preview Lab → · Contrast checker → · Palette generator →

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