#2847AA#2847AA

#2847AA is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.8% C 0.163 H 266.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2847AA
RGBrgb(40, 71, 170)
HSLhsl(226, 62%, 41%)
HSVhsv(226, 76%, 67%)
CMYKcmyk(76.5%, 58.2%, 0%, 33.3%)
CIE-LABlab(33.69, 24.84, -56.36)
CIE-LCHlch(33.69, 61.59, 293.78°)
OKLaboklab(43.76% -0.0104 -0.1627)
OKLCHoklch(43.76% 0.163 266.4)
XYZxyz(10.3815, 7.8587, 38.9922)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2847AA #AA8B28
analogous
#2888AA #2847AA #4A28AA
triadic
#2847AA #AA2847 #47AA28
tetradic
#2847AA #AA2888 #AA8B28 #28AA4A
square
#2847AA #AA2888 #AA8B28 #28AA4A
split-complementary
#2847AA #AA4A28 #88AA28
monochromatic
#111E47 #1C3278 #2847AA #3E61D2 #6F89DD

Accessibility & contrast

On white

8.16
#2847AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2847AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2847AA#FFFFFF#000000##FFFFFF
##2847AA1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#006071
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2847aa;
/* rgb */ color: rgb(40, 71, 170);
/* oklch */ color: oklch(43.8% 0.163 266.4);
Tailwind
colors: {
  custom: {
    50: '#7679c4',
    500: '#2847aa',
    950: '#000000',
  },
}
SCSS
$custom: #2847aa;
$custom-light: #7679c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2847aa",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 170
  },
  "hsl": {
    "h": 225.692,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43758,
    "c": 0.16301,
    "h": 266.4
  },
  "luminance": 0.0786
}

Semantic roles & 50–950 ramp

primary
#2847AA
secondary
#C4AE6A
accent
#BE43E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2847AA

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

Preview Lab → · Contrast checker → · Palette generator →

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