#2867C7#2867C7

#2867C7 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 52.7% C 0.163 H 259.0°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#2867C7
RGBrgb(40, 103, 199)
HSLhsl(216, 67%, 47%)
HSVhsv(216, 80%, 78%)
CMYKcmyk(79.9%, 48.2%, 0%, 22%)
CIE-LABlab(44.62, 14.95, -55.65)
CIE-LCHlch(44.62, 57.63, 285.03°)
OKLaboklab(52.73% -0.0311 -0.16)
OKLCHoklch(52.73% 0.163 259)
XYZxyz(16.0303, 14.2732, 55.9319)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2867C7 #C78828
analogous
#28B7C7 #2867C7 #3828C7
triadic
#2867C7 #C72867 #67C728
tetradic
#2867C7 #C728B7 #C78828 #28C738
square
#2867C7 #C728B7 #C78828 #28C738
split-complementary
#2867C7 #C73828 #B7C728
monochromatic
#143261 #1E4D94 #2867C7 #5088DC #83AAE6

Accessibility & contrast

On white

5.45
#2867C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#2867C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2867C7
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2867C7#FFFFFF#000000##FFFFFF
##2867C71.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3071CB
Deuteranopia (green-blind)
#0063C5
Tritanopia (blue-blind)
#007E8D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2867c7;
/* rgb */ color: rgb(40, 103, 199);
/* oklch */ color: oklch(52.7% 0.163 259.0);
Tailwind
colors: {
  custom: {
    50: '#7b91d9',
    500: '#2867c7',
    950: '#000000',
  },
}
SCSS
$custom: #2867c7;
$custom-light: #7b91d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2867c7",
  "rgb": {
    "r": 40,
    "g": 103,
    "b": 199
  },
  "hsl": {
    "h": 216.226,
    "s": 66.527,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52729,
    "c": 0.16302,
    "h": 259
  },
  "luminance": 0.14275
}

Semantic roles & 50–950 ramp

primary
#2867C7
secondary
#CFAE7C
accent
#A63EE9
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #2867C7

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

Preview Lab → · Contrast checker → · Palette generator →

#2867C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva