#2852BD#2852BD

#2852BD is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.175 H 264.4°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2852BD
RGBrgb(40, 82, 189)
HSLhsl(223, 65%, 45%)
HSVhsv(223, 79%, 74%)
CMYKcmyk(78.8%, 56.6%, 0%, 25.9%)
CIE-LABlab(38.13, 24.81, -60.37)
CIE-LCHlch(38.13, 65.27, 292.34°)
OKLaboklab(47.56% -0.0171 -0.1743)
OKLCHoklch(47.56% 0.175 264.4)
XYZxyz(13.0744, 10.1583, 49.4059)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852BD #BD9328
analogous
#289DBD #2852BD #4828BD
triadic
#2852BD #BD2852 #52BD28
tetradic
#2852BD #BD289D #BD9328 #28BD48
square
#2852BD #BD289D #BD9328 #28BD48
split-complementary
#2852BD #BD4828 #9DBD28
monochromatic
#132658 #1D3C8A #2852BD #4A72D9 #7C99E3

Accessibility & contrast

On white

6.93
#2852BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2852BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2852BD
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852BD#FFFFFF#000000##FFFFFF
##2852BD1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#006D7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2852bd;
/* rgb */ color: rgb(40, 82, 189);
/* oklch */ color: oklch(47.6% 0.175 264.4);
Tailwind
colors: {
  custom: {
    50: '#7a82d2',
    500: '#2852bd',
    950: '#000000',
  },
}
SCSS
$custom: #2852bd;
$custom-light: #7a82d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2852bd",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 189
  },
  "hsl": {
    "h": 223.087,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47559,
    "c": 0.17511,
    "h": 264.4
  },
  "luminance": 0.1016
}

Semantic roles & 50–950 ramp

primary
#2852BD
secondary
#CBB375
accent
#B940E8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2852BD

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

Preview Lab → · Contrast checker → · Palette generator →

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