#2852AA#2852AA

#2852AA is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.0% C 0.149 H 262.8°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#2852AA
RGBrgb(40, 82, 170)
HSLhsl(221, 62%, 41%)
HSVhsv(221, 76%, 67%)
CMYKcmyk(76.5%, 51.8%, 0%, 33.3%)
CIE-LABlab(36.72, 17.50, -51.44)
CIE-LCHlch(36.72, 54.34, 288.79°)
OKLaboklab(46.05% -0.0187 -0.148)
OKLCHoklch(46.05% 0.149 262.8)
XYZxyz(11.1455, 9.3867, 39.2468)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852AA #AA8028
analogous
#2893AA #2852AA #3F28AA
triadic
#2852AA #AA2852 #52AA28
tetradic
#2852AA #AA2893 #AA8028 #28AA3F
square
#2852AA #AA2893 #AA8028 #28AA3F
split-complementary
#2852AA #AA3F28 #93AA28
monochromatic
#112247 #1C3A78 #2852AA #3E6DD2 #6F93DD

Accessibility & contrast

On white

7.30
#2852AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2852AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2852AA#FFFFFF#000000##FFFFFF
##2852AA1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195DAD
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2852aa;
/* rgb */ color: rgb(40, 82, 170);
/* oklch */ color: oklch(46.0% 0.149 262.8);
Tailwind
colors: {
  custom: {
    50: '#7582c4',
    500: '#2852aa',
    950: '#000000',
  },
}
SCSS
$custom: #2852aa;
$custom-light: #7582c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2852aa",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 170
  },
  "hsl": {
    "h": 220.615,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46049,
    "c": 0.1492,
    "h": 262.8
  },
  "luminance": 0.09388
}

Semantic roles & 50–950 ramp

primary
#2852AA
secondary
#C4A76A
accent
#B143E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2852AA

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

Preview Lab → · Contrast checker → · Palette generator →

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