#2852AF#2852AF

#2852AF is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.4% C 0.156 H 263.3°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#2852AF
RGBrgb(40, 82, 175)
HSLhsl(221, 63%, 42%)
HSVhsv(221, 77%, 69%)
CMYKcmyk(77.1%, 53.1%, 0%, 31.4%)
CIE-LABlab(37.08, 19.43, -53.83)
CIE-LCHlch(37.08, 57.23, 289.85°)
OKLaboklab(46.44% -0.0182 -0.155)
OKLCHoklch(46.44% 0.156 263.3)
XYZxyz(11.6275, 9.5795, 41.7854)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852AF #AF8528
analogous
#2896AF #2852AF #4128AF
triadic
#2852AF #AF2852 #52AF28
tetradic
#2852AF #AF2896 #AF8528 #28AF41
square
#2852AF #AF2896 #AF8528 #28AF41
split-complementary
#2852AF #AF4128 #96AF28
monochromatic
#11234B #1D3B7D #2852AF #416ED4 #7394DF

Accessibility & contrast

On white

7.20
#2852AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##2852AF#FFFFFF#000000##FFFFFF
##2852AF1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5EB2
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#006978
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2852af;
/* rgb */ color: rgb(40, 82, 175);
/* oklch */ color: oklch(46.4% 0.156 263.3);
Tailwind
colors: {
  custom: {
    50: '#7682c8',
    500: '#2852af',
    950: '#000000',
  },
}
SCSS
$custom: #2852af;
$custom-light: #7682c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2852af",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 221.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46436,
    "c": 0.15611,
    "h": 263.3
  },
  "luminance": 0.09581
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2852AF

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

Preview Lab → · Contrast checker → · Palette generator →

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