#2E47A5#2E47A5

#2E47A5 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.6% C 0.154 H 268.1°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#2E47A5
RGBrgb(46, 71, 165)
HSLhsl(227, 56%, 41%)
HSVhsv(227, 72%, 65%)
CMYKcmyk(72.1%, 57%, 0%, 35.3%)
CIE-LABlab(33.57, 23.71, -53.55)
CIE-LCHlch(33.57, 58.56, 293.88°)
OKLaboklab(43.62% -0.0052 -0.1543)
OKLCHoklch(43.62% 0.154 268.1)
XYZxyz(10.1691, 7.8029, 36.5602)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E47A5 #A58C2E
analogous
#2E83A5 #2E47A5 #512EA5
triadic
#2E47A5 #A52E47 #47A52E
tetradic
#2E47A5 #A52E83 #A58C2E #2EA551
square
#2E47A5 #A52E83 #A58C2E #2EA551
split-complementary
#2E47A5 #A5512E #83A52E
monochromatic
#131E45 #213275 #2E47A5 #4561CB #758AD8

Accessibility & contrast

On white

8.20
#2E47A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2E47A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E47A5
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E47A5#FFFFFF#000000##FFFFFF
##2E47A51.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e47a5;
/* rgb */ color: rgb(46, 71, 165);
/* oklch */ color: oklch(43.6% 0.154 268.1);
Tailwind
colors: {
  custom: {
    50: '#7779c0',
    500: '#2e47a5',
    950: '#000000',
  },
}
SCSS
$custom: #2e47a5;
$custom-light: #7779c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e47a5",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 165
  },
  "hsl": {
    "h": 227.395,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43622,
    "c": 0.15438,
    "h": 268.1
  },
  "luminance": 0.07804
}

Semantic roles & 50–950 ramp

primary
#2E47A5
secondary
#C0AF6F
accent
#C048E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2E47A5

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

Preview Lab → · Contrast checker → · Palette generator →

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