#2847BA#2847BA

#2847BA is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.2% C 0.184 H 266.9°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#2847BA
RGBrgb(40, 71, 186)
HSLhsl(227, 65%, 44%)
HSVhsv(227, 78%, 73%)
CMYKcmyk(78.5%, 61.8%, 0%, 27.1%)
CIE-LABlab(35.01, 30.90, -63.69)
CIE-LCHlch(35.01, 70.79, 295.88°)
OKLaboklab(45.15% -0.0101 -0.1842)
OKLCHoklch(45.15% 0.184 266.9)
XYZxyz(11.9881, 8.5014, 47.4540)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2847BA #BA9B28
analogous
#2890BA #2847BA #5228BA
triadic
#2847BA #BA2847 #47BA28
tetradic
#2847BA #BA2890 #BA9B28 #28BA52
square
#2847BA #BA2890 #BA9B28 #28BA52
split-complementary
#2847BA #BA5228 #90BA28
monochromatic
#122155 #1D3488 #2847BA #4866D8 #7A90E2

Accessibility & contrast

On white

7.78
#2847BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2847BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2847BA
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2847BA#FFFFFF#000000##FFFFFF
##2847BA1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2847ba;
/* rgb */ color: rgb(40, 71, 186);
/* oklch */ color: oklch(45.2% 0.184 266.9);
Tailwind
colors: {
  custom: {
    50: '#7a7ad0',
    500: '#2847ba',
    950: '#000000',
  },
}
SCSS
$custom: #2847ba;
$custom-light: #7a7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#2847ba",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 186
  },
  "hsl": {
    "h": 227.26,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45152,
    "c": 0.18448,
    "h": 266.9
  },
  "luminance": 0.08503
}

Semantic roles & 50–950 ramp

primary
#2847BA
secondary
#CAB873
accent
#C440E8
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2847BA

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

Preview Lab → · Contrast checker → · Palette generator →

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