#2A47B5#2A47B5

#2A47B5 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.8% C 0.177 H 267.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#2A47B5
RGBrgb(42, 71, 181)
HSLhsl(227, 62%, 44%)
HSVhsv(227, 77%, 71%)
CMYKcmyk(76.8%, 60.8%, 0%, 29%)
CIE-LABlab(34.67, 29.23, -61.29)
CIE-LCHlch(34.67, 67.91, 295.50°)
OKLaboklab(44.79% -0.0084 -0.1771)
OKLCHoklch(44.79% 0.177 267.3)
XYZxyz(11.5457, 8.3336, 44.7072)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A47B5 #B5982A
analogous
#2A8CB5 #2A47B5 #522AB5
triadic
#2A47B5 #B52A47 #47B52A
tetradic
#2A47B5 #B52A8C #B5982A #2AB552
square
#2A47B5 #B52A8C #B5982A #2AB552
split-complementary
#2A47B5 #B5522A #8CB52A
monochromatic
#132052 #1E3483 #2A47B5 #4865D4 #798FE0

Accessibility & contrast

On white

7.87
#2A47B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2A47B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A47B5
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A47B5#FFFFFF#000000##FFFFFF
##2A47B51.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B9
Deuteranopia (green-blind)
#004BB3
Tritanopia (blue-blind)
#006377
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a47b5;
/* rgb */ color: rgb(42, 71, 181);
/* oklch */ color: oklch(44.8% 0.177 267.3);
Tailwind
colors: {
  custom: {
    50: '#7979cc',
    500: '#2a47b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a47b5;
$custom-light: #7979cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a47b5",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 181
  },
  "hsl": {
    "h": 227.482,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44794,
    "c": 0.17732,
    "h": 267.3
  },
  "luminance": 0.08335
}

Semantic roles & 50–950 ramp

primary
#2A47B5
secondary
#C8B673
accent
#C342E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2A47B5

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

Preview Lab → · Contrast checker → · Palette generator →

#2A47B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva