#2852B0#2852B0

#2852B0 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.157 H 263.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#2852B0
RGBrgb(40, 82, 176)
HSLhsl(221, 63%, 42%)
HSVhsv(221, 77%, 69%)
CMYKcmyk(77.3%, 53.4%, 0%, 31%)
CIE-LABlab(37.15, 19.82, -54.30)
CIE-LCHlch(37.15, 57.80, 290.05°)
OKLaboklab(46.51% -0.0181 -0.1564)
OKLCHoklch(46.51% 0.157 263.4)
XYZxyz(11.7260, 9.6190, 42.3045)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852B0 #B08628
analogous
#2896B0 #2852B0 #4228B0
triadic
#2852B0 #B02852 #52B028
tetradic
#2852B0 #B02896 #B08628 #28B042
square
#2852B0 #B02896 #B08628 #28B042
split-complementary
#2852B0 #B04228 #96B028
monochromatic
#11244C #1D3B7E #2852B0 #416FD4 #7395DF

Accessibility & contrast

On white

7.18
#2852B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2852B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2852B0
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852B0#FFFFFF#000000##FFFFFF
##2852B01.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5EB3
Deuteranopia (green-blind)
#0051AE
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2852b0;
/* rgb */ color: rgb(40, 82, 176);
/* oklch */ color: oklch(46.5% 0.157 263.4);
Tailwind
colors: {
  custom: {
    50: '#7782c8',
    500: '#2852b0',
    950: '#000000',
  },
}
SCSS
$custom: #2852b0;
$custom-light: #7782c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2852b0",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 176
  },
  "hsl": {
    "h": 221.471,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46514,
    "c": 0.15748,
    "h": 263.4
  },
  "luminance": 0.0962
}

Semantic roles & 50–950 ramp

primary
#2852B0
secondary
#C6AB6D
accent
#B342E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2852B0

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

Preview Lab → · Contrast checker → · Palette generator →

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