#2847A7#2847A7

#2847A7 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.5% C 0.159 H 266.2°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#2847A7
RGBrgb(40, 71, 167)
HSLhsl(225, 61%, 41%)
HSVhsv(225, 76%, 65%)
CMYKcmyk(76%, 57.5%, 0%, 34.5%)
CIE-LABlab(33.45, 23.69, -54.95)
CIE-LCHlch(33.45, 59.84, 293.32°)
OKLaboklab(43.51% -0.0105 -0.1585)
OKLCHoklch(43.51% 0.159 266.2)
XYZxyz(10.1009, 7.7465, 37.5146)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2847A7 #A78828
analogous
#2887A7 #2847A7 #4828A7
triadic
#2847A7 #A72847 #47A728
tetradic
#2847A7 #A72887 #A78828 #28A748
square
#2847A7 #A72887 #A78828 #28A748
split-complementary
#2847A7 #A74828 #87A728
monochromatic
#101D44 #1C3276 #2847A7 #3C60D0 #6D88DC

Accessibility & contrast

On white

8.24
#2847A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2847A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2847A7#FFFFFF#000000##FFFFFF
##2847A71.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#005F70
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2847a7;
/* rgb */ color: rgb(40, 71, 167);
/* oklch */ color: oklch(43.5% 0.159 266.2);
Tailwind
colors: {
  custom: {
    50: '#7579c2',
    500: '#2847a7',
    950: '#000000',
  },
}
SCSS
$custom: #2847a7;
$custom-light: #7579c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2847a7",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 167
  },
  "hsl": {
    "h": 225.354,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43506,
    "c": 0.15889,
    "h": 266.2
  },
  "luminance": 0.07748
}

Semantic roles & 50–950 ramp

primary
#2847A7
secondary
#C3AD68
accent
#BD43E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2847A7

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

Preview Lab → · Contrast checker → · Palette generator →

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