#2852BA#2852BA

#2852BA is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.3% C 0.171 H 264.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#2852BA
RGBrgb(40, 82, 186)
HSLhsl(223, 65%, 44%)
HSVhsv(223, 78%, 73%)
CMYKcmyk(78.5%, 55.9%, 0%, 27.1%)
CIE-LABlab(37.90, 23.66, -58.98)
CIE-LCHlch(37.90, 63.55, 291.86°)
OKLaboklab(47.31% -0.0173 -0.1702)
OKLCHoklch(47.31% 0.171 264.2)
XYZxyz(12.7521, 10.0294, 47.7086)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852BA #BA9028
analogous
#289BBA #2852BA #4728BA
triadic
#2852BA #BA2852 #52BA28
tetradic
#2852BA #BA289B #BA9028 #28BA47
square
#2852BA #BA289B #BA9028 #28BA47
split-complementary
#2852BA #BA4728 #9BBA28
monochromatic
#122655 #1D3C88 #2852BA #4871D8 #7A98E2

Accessibility & contrast

On white

6.99
#2852BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2852BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2852BA
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852BA#FFFFFF#000000##FFFFFF
##2852BA1.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2852ba;
/* rgb */ color: rgb(40, 82, 186);
/* oklch */ color: oklch(47.3% 0.171 264.2);
Tailwind
colors: {
  custom: {
    50: '#7982d0',
    500: '#2852ba',
    950: '#000000',
  },
}
SCSS
$custom: #2852ba;
$custom-light: #7982d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2852ba",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 222.74,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47313,
    "c": 0.17108,
    "h": 264.2
  },
  "luminance": 0.10031
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2852BA

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

Preview Lab → · Contrast checker → · Palette generator →

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