#2E478A#2E478A

#2E478A is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.5% C 0.116 H 266.1°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#2E478A
RGBrgb(46, 71, 138)
HSLhsl(224, 50%, 36%)
HSVhsv(224, 67%, 54%)
CMYKcmyk(66.7%, 48.6%, 0%, 45.9%)
CIE-LABlab(31.63, 13.52, -40.28)
CIE-LCHlch(31.63, 42.49, 288.55°)
OKLaboklab(41.54% -0.0078 -0.1153)
OKLCHoklch(41.54% 0.116 266.1)
XYZxyz(7.9658, 6.9216, 24.9560)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E478A #8A712E
analogous
#2E758A #2E478A #432E8A
triadic
#2E478A #8A2E47 #478A2E
tetradic
#2E478A #8A2E75 #8A712E #2E8A43
square
#2E478A #8A2E75 #8A712E #2E8A43
split-complementary
#2E478A #8A432E #758A2E
monochromatic
#0F182E #1F2F5C #2E478A #3D5FB8 #6682CC

Accessibility & contrast

On white

8.81
#2E478A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2E478A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E478A
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E478A#FFFFFF#000000##FFFFFF
##2E478A1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254F8C
Deuteranopia (green-blind)
#134689
Tritanopia (blue-blind)
#005662
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2e478a;
/* rgb */ color: rgb(46, 71, 138);
/* oklch */ color: oklch(41.5% 0.116 266.1);
Tailwind
colors: {
  custom: {
    50: '#7179ad',
    500: '#2e478a',
    950: '#000000',
  },
}
SCSS
$custom: #2e478a;
$custom-light: #7179ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e478a",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 138
  },
  "hsl": {
    "h": 223.696,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41535,
    "c": 0.11552,
    "h": 266.1
  },
  "luminance": 0.06922
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E478A

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

Preview Lab → · Contrast checker → · Palette generator →

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