#2847AC#2847AC

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

Color values

HEX#2847AC
RGBrgb(40, 71, 172)
HSLhsl(226, 62%, 42%)
HSVhsv(226, 77%, 67%)
CMYKcmyk(76.7%, 58.7%, 0%, 32.5%)
CIE-LABlab(33.85, 25.60, -57.29)
CIE-LCHlch(33.85, 62.75, 294.08°)
OKLaboklab(43.93% -0.0103 -0.1654)
OKLCHoklch(43.93% 0.166 266.4)
XYZxyz(10.5721, 7.9350, 39.9961)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2847AC #AC8D28
analogous
#2889AC #2847AC #4B28AC
triadic
#2847AC #AC2847 #47AC28
tetradic
#2847AC #AC2889 #AC8D28 #28AC4B
square
#2847AC #AC2889 #AC8D28 #28AC4B
split-complementary
#2847AC #AC4B28 #89AC28
monochromatic
#111E49 #1C337A #2847AC #3F62D2 #718ADE

Accessibility & contrast

On white

8.12
#2847AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2847AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2847AC#FFFFFF#000000##FFFFFF
##2847AC1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#006072
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2847ac;
/* rgb */ color: rgb(40, 71, 172);
/* oklch */ color: oklch(43.9% 0.166 266.4);
Tailwind
colors: {
  custom: {
    50: '#7679c6',
    500: '#2847ac',
    950: '#000000',
  },
}
SCSS
$custom: #2847ac;
$custom-light: #7679c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2847ac",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 172
  },
  "hsl": {
    "h": 225.909,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43928,
    "c": 0.16574,
    "h": 266.4
  },
  "luminance": 0.07936
}

Semantic roles & 50–950 ramp

primary
#2847AC
secondary
#C5B06B
accent
#BF42E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2847AC

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

Preview Lab → · Contrast checker → · Palette generator →

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