#2E478E#2E478E

#2E478E is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.8% C 0.121 H 266.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#2E478E
RGBrgb(46, 71, 142)
HSLhsl(224, 51%, 37%)
HSVhsv(224, 68%, 56%)
CMYKcmyk(67.6%, 50%, 0%, 44.3%)
CIE-LABlab(31.90, 15.03, -42.30)
CIE-LCHlch(31.90, 44.89, 289.55°)
OKLaboklab(41.83% -0.0072 -0.1212)
OKLCHoklch(41.83% 0.121 266.6)
XYZxyz(8.2607, 7.0395, 26.5094)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E478E #8E752E
analogous
#2E778E #2E478E #452E8E
triadic
#2E478E #8E2E47 #478E2E
tetradic
#2E478E #8E2E77 #8E752E #2E8E45
square
#2E478E #8E2E77 #8E752E #2E8E45
split-complementary
#2E478E #8E452E #778E2E
monochromatic
#101932 #1F3060 #2E478E #3D5EBC #6883CE

Accessibility & contrast

On white

8.72
#2E478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2E478E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E478E
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E478E#FFFFFF#000000##FFFFFF
##2E478E1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#09478D
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2e478e;
/* rgb */ color: rgb(46, 71, 142);
/* oklch */ color: oklch(41.8% 0.121 266.6);
Tailwind
colors: {
  custom: {
    50: '#7279af',
    500: '#2e478e',
    950: '#000000',
  },
}
SCSS
$custom: #2e478e;
$custom-light: #7279af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e478e",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 224.375,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41827,
    "c": 0.12144,
    "h": 266.6
  },
  "luminance": 0.0704
}

Semantic roles & 50–950 ramp

primary
#2E478E
secondary
#B5A063
accent
#B64DDB
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #2E478E

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

Preview Lab → · Contrast checker → · Palette generator →

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