#2847B6#2847B6

#2847B6 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.8% C 0.179 H 266.8°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#2847B6
RGBrgb(40, 71, 182)
HSLhsl(227, 64%, 44%)
HSVhsv(227, 78%, 71%)
CMYKcmyk(78%, 61%, 0%, 28.6%)
CIE-LABlab(34.67, 29.39, -61.89)
CIE-LCHlch(34.67, 68.51, 295.41°)
OKLaboklab(44.8% -0.0101 -0.1789)
OKLCHoklch(44.8% 0.179 266.8)
XYZxyz(11.5689, 8.3337, 45.2457)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2847B6 #B69728
analogous
#288EB6 #2847B6 #5028B6
triadic
#2847B6 #B62847 #47B628
tetradic
#2847B6 #B6288E #B69728 #28B650
square
#2847B6 #B6288E #B69728 #28B650
split-complementary
#2847B6 #B65028 #8EB628
monochromatic
#122052 #1D3384 #2847B6 #4565D6 #778EE1

Accessibility & contrast

On white

7.87
#2847B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2847B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2847B6
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2847B6#FFFFFF#000000##FFFFFF
##2847B61.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BA
Deuteranopia (green-blind)
#004BB4
Tritanopia (blue-blind)
#006377
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2847b6;
/* rgb */ color: rgb(40, 71, 182);
/* oklch */ color: oklch(44.8% 0.179 266.8);
Tailwind
colors: {
  custom: {
    50: '#7979cd',
    500: '#2847b6',
    950: '#000000',
  },
}
SCSS
$custom: #2847b6;
$custom-light: #7979cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2847b6",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 182
  },
  "hsl": {
    "h": 226.901,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44797,
    "c": 0.17918,
    "h": 266.8
  },
  "luminance": 0.08335
}

Semantic roles & 50–950 ramp

primary
#2847B6
secondary
#C9B671
accent
#C341E7
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2847B6

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

Preview Lab → · Contrast checker → · Palette generator →

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