#2E579D#2E579D

#2E579D is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.5% C 0.123 H 260.4°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2E579D
RGBrgb(46, 87, 157)
HSLhsl(218, 55%, 40%)
HSVhsv(218, 71%, 62%)
CMYKcmyk(70.7%, 44.6%, 0%, 38.4%)
CIE-LABlab(37.54, 10.05, -42.35)
CIE-LCHlch(37.54, 43.53, 283.35°)
OKLaboklab(46.47% -0.0205 -0.1211)
OKLCHoklch(46.47% 0.123 260.4)
XYZxyz(10.6185, 9.8305, 33.2296)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E579D #9D742E
analogous
#2E8F9D #2E579D #3D2E9D
triadic
#2E579D #9D2E57 #579D2E
tetradic
#2E579D #9D2E8F #9D742E #2E9D3D
square
#2E579D #9D2E8F #9D742E #2E9D3D
split-complementary
#2E579D #9D3D2E #8F9D2E
monochromatic
#12233E #203D6E #2E579D #4173C7 #7096D5

Accessibility & contrast

On white

7.08
#2E579D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2E579D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E579D
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E579D#FFFFFF#000000##FFFFFF
##2E579D1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355EA0
Deuteranopia (green-blind)
#21549C
Tritanopia (blue-blind)
#006772
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2e579d;
/* rgb */ color: rgb(46, 87, 157);
/* oklch */ color: oklch(46.5% 0.123 260.4);
Tailwind
colors: {
  custom: {
    50: '#7485ba',
    500: '#2e579d',
    950: '#000000',
  },
}
SCSS
$custom: #2e579d;
$custom-light: #7485ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e579d",
  "rgb": {
    "r": 46,
    "g": 87,
    "b": 157
  },
  "hsl": {
    "h": 217.838,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46466,
    "c": 0.12282,
    "h": 260.4
  },
  "luminance": 0.09832
}

Semantic roles & 50–950 ramp

primary
#2E579D
secondary
#BD9E6A
accent
#A74ADE
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2E579D

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

Preview Lab → · Contrast checker → · Palette generator →

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