#2847B5#2847B5

#2847B5 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.7% C 0.178 H 266.7°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#2847B5
RGBrgb(40, 71, 181)
HSLhsl(227, 64%, 43%)
HSVhsv(227, 78%, 71%)
CMYKcmyk(77.9%, 60.8%, 0%, 29%)
CIE-LABlab(34.58, 29.02, -61.43)
CIE-LCHlch(34.58, 67.94, 295.28°)
OKLaboklab(44.71% -0.0101 -0.1776)
OKLCHoklch(44.71% 0.178 266.7)
XYZxyz(11.4659, 8.2925, 44.7034)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2847B5 #B59628
analogous
#288DB5 #2847B5 #5028B5
triadic
#2847B5 #B52847 #47B528
tetradic
#2847B5 #B5288D #B59628 #28B550
square
#2847B5 #B5288D #B59628 #28B550
split-complementary
#2847B5 #B55028 #8DB528
monochromatic
#122051 #1D3383 #2847B5 #4464D6 #778EE1

Accessibility & contrast

On white

7.90
#2847B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2847B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2847B5
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2847B5#FFFFFF#000000##FFFFFF
##2847B51.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B9
Deuteranopia (green-blind)
#004BB3
Tritanopia (blue-blind)
#006377
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2847b5;
/* rgb */ color: rgb(40, 71, 181);
/* oklch */ color: oklch(44.7% 0.178 266.7);
Tailwind
colors: {
  custom: {
    50: '#7879cc',
    500: '#2847b5',
    950: '#000000',
  },
}
SCSS
$custom: #2847b5;
$custom-light: #7879cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2847b5",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 181
  },
  "hsl": {
    "h": 226.809,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44709,
    "c": 0.17786,
    "h": 266.7
  },
  "luminance": 0.08294
}

Semantic roles & 50–950 ramp

primary
#2847B5
secondary
#C8B570
accent
#C241E7
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2847B5

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

Preview Lab → · Contrast checker → · Palette generator →

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