#2852B9#2852B9

#2852B9 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.2% C 0.170 H 264.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2852B9
RGBrgb(40, 82, 185)
HSLhsl(223, 64%, 44%)
HSVhsv(223, 78%, 73%)
CMYKcmyk(78.4%, 55.7%, 0%, 27.5%)
CIE-LABlab(37.82, 23.28, -58.52)
CIE-LCHlch(37.82, 62.98, 291.69°)
OKLaboklab(47.23% -0.0173 -0.1688)
OKLCHoklch(47.23% 0.17 264.1)
XYZxyz(12.6462, 9.9870, 47.1507)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852B9 #B98F28
analogous
#289BB9 #2852B9 #4728B9
triadic
#2852B9 #B92852 #52B928
tetradic
#2852B9 #B9289B #B98F28 #28B947
square
#2852B9 #B9289B #B98F28 #28B947
split-complementary
#2852B9 #B94728 #9BB928
monochromatic
#122554 #1D3C87 #2852B9 #4771D7 #7998E2

Accessibility & contrast

On white

7.01
#2852B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#2852B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2852B9
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852B9#FFFFFF#000000##FFFFFF
##2852B91.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#0053B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2852b9;
/* rgb */ color: rgb(40, 82, 185);
/* oklch */ color: oklch(47.2% 0.170 264.1);
Tailwind
colors: {
  custom: {
    50: '#7982cf',
    500: '#2852b9',
    950: '#000000',
  },
}
SCSS
$custom: #2852b9;
$custom-light: #7982cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2852b9",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 185
  },
  "hsl": {
    "h": 222.621,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47232,
    "c": 0.16974,
    "h": 264.1
  },
  "luminance": 0.09988
}

Semantic roles & 50–950 ramp

primary
#2852B9
secondary
#CAB173
accent
#B740E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2852B9

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

Preview Lab → · Contrast checker → · Palette generator →

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