#2847AF#2847AF

#2847AF is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.2% C 0.170 H 266.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#2847AF
RGBrgb(40, 71, 175)
HSLhsl(226, 63%, 42%)
HSVhsv(226, 77%, 69%)
CMYKcmyk(77.1%, 59.4%, 0%, 31.4%)
CIE-LABlab(34.09, 26.75, -58.68)
CIE-LCHlch(34.09, 64.49, 294.50°)
OKLaboklab(44.19% -0.0102 -0.1695)
OKLCHoklch(44.19% 0.17 266.6)
XYZxyz(10.8635, 8.0515, 41.5307)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2847AF #AF9028
analogous
#288BAF #2847AF #4C28AF
triadic
#2847AF #AF2847 #47AF28
tetradic
#2847AF #AF288B #AF9028 #28AF4C
square
#2847AF #AF288B #AF9028 #28AF4C
split-complementary
#2847AF #AF4C28 #8BAF28
monochromatic
#111F4B #1D337D #2847AF #4162D4 #738BDF

Accessibility & contrast

On white

8.04
#2847AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2847AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2847AF#FFFFFF#000000##FFFFFF
##2847AF1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B2
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#006174
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2847af;
/* rgb */ color: rgb(40, 71, 175);
/* oklch */ color: oklch(44.2% 0.170 266.6);
Tailwind
colors: {
  custom: {
    50: '#7779c8',
    500: '#2847af',
    950: '#000000',
  },
}
SCSS
$custom: #2847af;
$custom-light: #7779c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2847af",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 175
  },
  "hsl": {
    "h": 226.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44186,
    "c": 0.16981,
    "h": 266.6
  },
  "luminance": 0.08053
}

Semantic roles & 50–950 ramp

primary
#2847AF
secondary
#C6B26D
accent
#C042E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2847AF

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

Preview Lab → · Contrast checker → · Palette generator →

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