#2847AB#2847AB

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

Color values

HEX#2847AB
RGBrgb(40, 71, 171)
HSLhsl(226, 62%, 41%)
HSVhsv(226, 77%, 67%)
CMYKcmyk(76.6%, 58.5%, 0%, 32.9%)
CIE-LABlab(33.77, 25.22, -56.83)
CIE-LCHlch(33.77, 62.17, 293.93°)
OKLaboklab(43.84% -0.0103 -0.164)
OKLCHoklch(43.84% 0.164 266.4)
XYZxyz(10.4764, 7.8967, 39.4923)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2847AB #AB8C28
analogous
#2889AB #2847AB #4B28AB
triadic
#2847AB #AB2847 #47AB28
tetradic
#2847AB #AB2889 #AB8C28 #28AB4B
square
#2847AB #AB2889 #AB8C28 #28AB4B
split-complementary
#2847AB #AB4B28 #89AB28
monochromatic
#111E48 #1C3279 #2847AB #3E61D2 #708ADE

Accessibility & contrast

On white

8.14
#2847AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2847AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2847AB#FFFFFF#000000##FFFFFF
##2847AB1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AE
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#006072
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2847ab;
/* rgb */ color: rgb(40, 71, 171);
/* oklch */ color: oklch(43.8% 0.164 266.4);
Tailwind
colors: {
  custom: {
    50: '#7679c5',
    500: '#2847ab',
    950: '#000000',
  },
}
SCSS
$custom: #2847ab;
$custom-light: #7679c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2847ab",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 171
  },
  "hsl": {
    "h": 225.802,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43843,
    "c": 0.16437,
    "h": 266.4
  },
  "luminance": 0.07898
}

Semantic roles & 50–950 ramp

primary
#2847AB
secondary
#C4AF6A
accent
#BF43E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2847AB

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

Preview Lab → · Contrast checker → · Palette generator →

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