#2E47A6#2E47A6

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

Color values

HEX#2E47A6
RGBrgb(46, 71, 166)
HSLhsl(228, 57%, 42%)
HSVhsv(228, 72%, 65%)
CMYKcmyk(72.3%, 57.2%, 0%, 34.9%)
CIE-LABlab(33.65, 24.08, -54.02)
CIE-LCHlch(33.65, 59.15, 294.03°)
OKLaboklab(43.7% -0.0052 -0.1557)
OKLCHoklch(43.7% 0.156 268.1)
XYZxyz(10.2605, 7.8394, 37.0414)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E47A6 #A68D2E
analogous
#2E83A6 #2E47A6 #512EA6
triadic
#2E47A6 #A62E47 #47A62E
tetradic
#2E47A6 #A62E83 #A68D2E #2EA651
square
#2E47A6 #A62E83 #A68D2E #2EA651
split-complementary
#2E47A6 #A6512E #83A62E
monochromatic
#131E46 #213376 #2E47A6 #4662CC #768AD9

Accessibility & contrast

On white

8.18
#2E47A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2E47A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E47A6
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E47A6#FFFFFF#000000##FFFFFF
##2E47A61.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)
#0055A9
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e47a6;
/* rgb */ color: rgb(46, 71, 166);
/* oklch */ color: oklch(43.7% 0.156 268.1);
Tailwind
colors: {
  custom: {
    50: '#7779c1',
    500: '#2e47a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e47a6;
$custom-light: #7779c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e47a6",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 166
  },
  "hsl": {
    "h": 227.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43704,
    "c": 0.15577,
    "h": 268.1
  },
  "luminance": 0.0784
}

Semantic roles & 50–950 ramp

primary
#2E47A6
secondary
#C1B06F
accent
#C048E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2E47A6

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

Preview Lab → · Contrast checker → · Palette generator →

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