#2E478C#2E478C

#2E478C is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.7% C 0.118 H 266.4°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#2E478C
RGBrgb(46, 71, 140)
HSLhsl(224, 51%, 36%)
HSVhsv(224, 67%, 55%)
CMYKcmyk(67.1%, 49.3%, 0%, 45.1%)
CIE-LABlab(31.76, 14.27, -41.29)
CIE-LCHlch(31.76, 43.69, 289.07°)
OKLaboklab(41.68% -0.0075 -0.1182)
OKLCHoklch(41.68% 0.118 266.4)
XYZxyz(8.1119, 6.9800, 25.7256)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E478C #8C732E
analogous
#2E768C #2E478C #442E8C
triadic
#2E478C #8C2E47 #478C2E
tetradic
#2E478C #8C2E76 #8C732E #2E8C44
square
#2E478C #8C2E76 #8C732E #2E8C44
split-complementary
#2E478C #8C442E #768C2E
monochromatic
#101830 #1F305E #2E478C #3D5EBA #6782CD

Accessibility & contrast

On white

8.76
#2E478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2E478C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E478C
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E478C#FFFFFF#000000##FFFFFF
##2E478C1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8F
Deuteranopia (green-blind)
#0E478B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2e478c;
/* rgb */ color: rgb(46, 71, 140);
/* oklch */ color: oklch(41.7% 0.118 266.4);
Tailwind
colors: {
  custom: {
    50: '#7179ae',
    500: '#2e478c',
    950: '#000000',
  },
}
SCSS
$custom: #2e478c;
$custom-light: #7179ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e478c",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 224.043,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4168,
    "c": 0.11849,
    "h": 266.4
  },
  "luminance": 0.06981
}

Semantic roles & 50–950 ramp

primary
#2E478C
secondary
#B49E62
accent
#B54EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2E478C

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

Preview Lab → · Contrast checker → · Palette generator →

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