#2E478B#2E478B

#2E478B is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.6% C 0.117 H 266.2°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#2E478B
RGBrgb(46, 71, 139)
HSLhsl(224, 50%, 36%)
HSVhsv(224, 67%, 55%)
CMYKcmyk(66.9%, 48.9%, 0%, 45.5%)
CIE-LABlab(31.69, 13.89, -40.79)
CIE-LCHlch(31.69, 43.09, 288.81°)
OKLaboklab(41.61% -0.0077 -0.1167)
OKLCHoklch(41.61% 0.117 266.2)
XYZxyz(8.0385, 6.9507, 25.3391)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E478B #8B722E
analogous
#2E768B #2E478B #442E8B
triadic
#2E478B #8B2E47 #478B2E
tetradic
#2E478B #8B2E76 #8B722E #2E8B44
square
#2E478B #8B2E76 #8B722E #2E8B44
split-complementary
#2E478B #8B442E #768B2E
monochromatic
#10182F #1F305D #2E478B #3D5EB9 #6782CD

Accessibility & contrast

On white

8.79
#2E478B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2E478B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E478B
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E478B#FFFFFF#000000##FFFFFF
##2E478B1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8E
Deuteranopia (green-blind)
#11478A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2e478b;
/* rgb */ color: rgb(46, 71, 139);
/* oklch */ color: oklch(41.6% 0.117 266.2);
Tailwind
colors: {
  custom: {
    50: '#7179ad',
    500: '#2e478b',
    950: '#000000',
  },
}
SCSS
$custom: #2e478b;
$custom-light: #7179ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e478b",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 223.871,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41608,
    "c": 0.117,
    "h": 266.2
  },
  "luminance": 0.06951
}

Semantic roles & 50–950 ramp

primary
#2E478B
secondary
#B39D61
accent
#B44EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2E478B

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

Preview Lab → · Contrast checker → · Palette generator →

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