#2847BC#2847BC

#2847BC is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.3% C 0.187 H 266.9°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#2847BC
RGBrgb(40, 71, 188)
HSLhsl(227, 65%, 45%)
HSVhsv(227, 79%, 74%)
CMYKcmyk(78.7%, 62.2%, 0%, 26.3%)
CIE-LABlab(35.18, 31.64, -64.59)
CIE-LCHlch(35.18, 71.93, 296.10°)
OKLaboklab(45.33% -0.0101 -0.1868)
OKLCHoklch(45.33% 0.187 266.9)
XYZxyz(12.2022, 8.5870, 48.5816)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2847BC #BC9D28
analogous
#2891BC #2847BC #5328BC
triadic
#2847BC #BC2847 #47BC28
tetradic
#2847BC #BC2891 #BC9D28 #28BC53
square
#2847BC #BC2891 #BC9D28 #28BC53
split-complementary
#2847BC #BC5328 #91BC28
monochromatic
#132157 #1D348A #2847BC #4967D8 #7B91E3

Accessibility & contrast

On white

7.73
#2847BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2847BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2847BC
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2847BC#FFFFFF#000000##FFFFFF
##2847BC1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#00657B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2847bc;
/* rgb */ color: rgb(40, 71, 188);
/* oklch */ color: oklch(45.3% 0.187 266.9);
Tailwind
colors: {
  custom: {
    50: '#7a7ad1',
    500: '#2847bc',
    950: '#000000',
  },
}
SCSS
$custom: #2847bc;
$custom-light: #7a7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#2847bc",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 188
  },
  "hsl": {
    "h": 227.432,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45331,
    "c": 0.1871,
    "h": 266.9
  },
  "luminance": 0.08588
}

Semantic roles & 50–950 ramp

primary
#2847BC
secondary
#CBB975
accent
#C540E8
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2847BC

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

Preview Lab → · Contrast checker → · Palette generator →

#2847BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva