#2D579E#2D579E

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

Color values

HEX#2D579E
RGBrgb(45, 87, 158)
HSLhsl(218, 56%, 40%)
HSVhsv(218, 72%, 62%)
CMYKcmyk(71.5%, 44.9%, 0%, 38%)
CIE-LABlab(37.56, 10.27, -42.92)
CIE-LCHlch(37.56, 44.13, 283.46°)
OKLaboklab(46.49% -0.0211 -0.1228)
OKLCHoklch(46.49% 0.125 260.2)
XYZxyz(10.6597, 9.8418, 33.6790)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D579E #9E742D
analogous
#2D909E #2D579E #3B2D9E
triadic
#2D579E #9E2D57 #579E2D
tetradic
#2D579E #9E2D90 #9E742D #2D9E3B
square
#2D579E #9E2D90 #9E742D #2D9E3B
split-complementary
#2D579E #9E3B2D #909E2D
monochromatic
#12233F #1F3D6E #2D579E #4073C9 #6F96D6

Accessibility & contrast

On white

7.07
#2D579E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D579E
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D579E#FFFFFF#000000##FFFFFF
##2D579E1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345EA1
Deuteranopia (green-blind)
#1F549D
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d579e;
/* rgb */ color: rgb(45, 87, 158);
/* oklch */ color: oklch(46.5% 0.125 260.2);
Tailwind
colors: {
  custom: {
    50: '#7485bb',
    500: '#2d579e',
    950: '#000000',
  },
}
SCSS
$custom: #2d579e;
$custom-light: #7485bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d579e",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 158
  },
  "hsl": {
    "h": 217.699,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46491,
    "c": 0.12459,
    "h": 260.2
  },
  "luminance": 0.09843
}

Semantic roles & 50–950 ramp

primary
#2D579E
secondary
#BD9E69
accent
#A749DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2D579E

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

Preview Lab → · Contrast checker → · Palette generator →

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