#3147A4#3147A4

#3147A4 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.7% C 0.152 H 269.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#3147A4
RGBrgb(49, 71, 164)
HSLhsl(229, 54%, 42%)
HSVhsv(229, 70%, 64%)
CMYKcmyk(70.1%, 56.7%, 0%, 35.7%)
CIE-LABlab(33.64, 23.76, -52.82)
CIE-LCHlch(33.64, 57.92, 294.22°)
OKLaboklab(43.7% -0.0024 -0.1521)
OKLCHoklch(43.7% 0.152 269.1)
XYZxyz(10.2184, 7.8388, 36.0893)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3147A4 #A48E31
analogous
#3181A4 #3147A4 #5531A4
triadic
#3147A4 #A43147 #47A431
tetradic
#3147A4 #A43181 #A48E31 #31A455
square
#3147A4 #A43181 #A48E31 #31A455
split-complementary
#3147A4 #A45531 #81A431
monochromatic
#151E46 #233375 #3147A4 #4962C9 #798BD7

Accessibility & contrast

On white

8.18
#3147A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3147A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3147A4
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3147A4#FFFFFF#000000##FFFFFF
##3147A41.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#005E6E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3147a4;
/* rgb */ color: rgb(49, 71, 164);
/* oklch */ color: oklch(43.7% 0.152 269.1);
Tailwind
colors: {
  custom: {
    50: '#7879c0',
    500: '#3147a4',
    950: '#000000',
  },
}
SCSS
$custom: #3147a4;
$custom-light: #7879c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3147a4",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 164
  },
  "hsl": {
    "h": 228.522,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43696,
    "c": 0.1521,
    "h": 269.1
  },
  "luminance": 0.0784
}

Semantic roles & 50–950 ramp

primary
#3147A4
secondary
#BFB072
accent
#C14ADD
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #3147A4

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

Preview Lab → · Contrast checker → · Palette generator →

#3147A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva