#2E47A8#2E47A8

#2E47A8 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.9% C 0.159 H 268.2°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2E47A8
RGBrgb(46, 71, 168)
HSLhsl(228, 57%, 42%)
HSVhsv(228, 73%, 66%)
CMYKcmyk(72.6%, 57.7%, 0%, 34.1%)
CIE-LABlab(33.80, 24.83, -54.96)
CIE-LCHlch(33.80, 60.31, 294.31°)
OKLaboklab(43.87% -0.0051 -0.1585)
OKLCHoklch(43.87% 0.159 268.2)
XYZxyz(10.4454, 7.9134, 38.0151)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E47A8 #A88F2E
analogous
#2E84A8 #2E47A8 #522EA8
triadic
#2E47A8 #A82E47 #47A82E
tetradic
#2E47A8 #A82E84 #A88F2E #2EA852
square
#2E47A8 #A82E84 #A88F2E #2EA852
split-complementary
#2E47A8 #A8522E #84A82E
monochromatic
#141E48 #213378 #2E47A8 #4762CD #778BDA

Accessibility & contrast

On white

8.13
#2E47A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2E47A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E47A8
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E47A8#FFFFFF#000000##FFFFFF
##2E47A81.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#005F70
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e47a8;
/* rgb */ color: rgb(46, 71, 168);
/* oklch */ color: oklch(43.9% 0.159 268.2);
Tailwind
colors: {
  custom: {
    50: '#7879c3',
    500: '#2e47a8',
    950: '#000000',
  },
}
SCSS
$custom: #2e47a8;
$custom-light: #7879c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e47a8",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 168
  },
  "hsl": {
    "h": 227.705,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4387,
    "c": 0.15854,
    "h": 268.2
  },
  "luminance": 0.07914
}

Semantic roles & 50–950 ramp

primary
#2E47A8
secondary
#C2B170
accent
#C148E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2E47A8

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

Preview Lab → · Contrast checker → · Palette generator →

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