#2856A2#2856A2

#2856A2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.3% C 0.133 H 259.9°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#2856A2
RGBrgb(40, 86, 162)
HSLhsl(217, 60%, 40%)
HSVhsv(217, 75%, 64%)
CMYKcmyk(75.3%, 46.9%, 0%, 36.5%)
CIE-LABlab(37.32, 11.75, -45.70)
CIE-LCHlch(37.32, 47.18, 284.42°)
OKLaboklab(46.34% -0.0233 -0.131)
OKLCHoklch(46.34% 0.133 259.9)
XYZxyz(10.7221, 9.7141, 35.4853)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2856A2 #A27428
analogous
#2893A2 #2856A2 #3728A2
triadic
#2856A2 #A22856 #56A228
tetradic
#2856A2 #A22893 #A27428 #28A237
square
#2856A2 #A22893 #A27428 #28A237
split-complementary
#2856A2 #A23728 #93A228
monochromatic
#102240 #1C3C71 #2856A2 #3971CE #6A94DA

Accessibility & contrast

On white

7.14
#2856A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2856A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2856A2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2856A2#FFFFFF#000000##FFFFFF
##2856A21.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5EA5
Deuteranopia (green-blind)
#1153A0
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2856a2;
/* rgb */ color: rgb(40, 86, 162);
/* oklch */ color: oklch(46.3% 0.133 259.9);
Tailwind
colors: {
  custom: {
    50: '#7385be',
    500: '#2856a2',
    950: '#000000',
  },
}
SCSS
$custom: #2856a2;
$custom-light: #7385be;
$custom-dark: #000000;
JSON
{
  "hex": "#2856a2",
  "rgb": {
    "r": 40,
    "g": 86,
    "b": 162
  },
  "hsl": {
    "h": 217.377,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46339,
    "c": 0.13309,
    "h": 259.9
  },
  "luminance": 0.09715
}

Semantic roles & 50–950 ramp

primary
#2856A2
secondary
#C19E65
accent
#A744E4
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2856A2

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

Preview Lab → · Contrast checker → · Palette generator →

#2856A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva