#2856D1#2856D1

#2856D1 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.0% C 0.197 H 264.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#2856D1
RGBrgb(40, 86, 209)
HSLhsl(224, 68%, 49%)
HSVhsv(224, 81%, 82%)
CMYKcmyk(80.9%, 58.9%, 0%, 18%)
CIE-LABlab(40.75, 29.78, -67.70)
CIE-LCHlch(40.75, 73.96, 293.74°)
OKLaboklab(50.02% -0.0187 -0.1957)
OKLCHoklch(50.02% 0.197 264.6)
XYZxyz(15.7074, 11.7083, 61.7413)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2856D1 #D1A328
analogous
#28ABD1 #2856D1 #4F28D1
triadic
#2856D1 #D12856 #56D128
tetradic
#2856D1 #D128AB #D1A328 #28D14F
square
#2856D1 #D128AB #D1A328 #28D14F
split-complementary
#2856D1 #D14F28 #ABD128
monochromatic
#142C6A #1E419E #2856D1 #577CDF #8BA4E9

Accessibility & contrast

On white

6.28
#2856D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2856D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2856D1
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2856D1#FFFFFF#000000##FFFFFF
##2856D11.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D5
Deuteranopia (green-blind)
#0059CF
Tritanopia (blue-blind)
#00758B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2856d1;
/* rgb */ color: rgb(40, 86, 209);
/* oklch */ color: oklch(50.0% 0.197 264.6);
Tailwind
colors: {
  custom: {
    50: '#7e85e0',
    500: '#2856d1',
    950: '#000000',
  },
}
SCSS
$custom: #2856d1;
$custom-light: #7e85e0;
$custom-dark: #000000;
JSON
{
  "hex": "#2856d1",
  "rgb": {
    "r": 40,
    "g": 86,
    "b": 209
  },
  "hsl": {
    "h": 223.669,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50019,
    "c": 0.19662,
    "h": 264.6
  },
  "luminance": 0.1171
}

Semantic roles & 50–950 ramp

primary
#2856D1
secondary
#D3BD82
accent
#BB3DEB
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #2856D1

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

Preview Lab → · Contrast checker → · Palette generator →

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