#2D579F#2D579F

#2D579F is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.6% C 0.126 H 260.4°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2D579F
RGBrgb(45, 87, 159)
HSLhsl(218, 56%, 40%)
HSVhsv(218, 72%, 62%)
CMYKcmyk(71.7%, 45.3%, 0%, 37.6%)
CIE-LABlab(37.62, 10.65, -43.42)
CIE-LCHlch(37.62, 44.70, 283.79°)
OKLaboklab(46.56% -0.0209 -0.1242)
OKLCHoklch(46.56% 0.126 260.4)
XYZxyz(10.7461, 9.8764, 34.1342)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D579F #9F752D
analogous
#2D909F #2D579F #3C2D9F
triadic
#2D579F #9F2D57 #579F2D
tetradic
#2D579F #9F2D90 #9F752D #2D9F3C
square
#2D579F #9F2D90 #9F752D #2D9F3C
split-complementary
#2D579F #9F3C2D #909F2D
monochromatic
#122340 #203D6F #2D579F #4073C9 #7096D6

Accessibility & contrast

On white

7.06
#2D579F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2D579F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D579F
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D579F#FFFFFF#000000##FFFFFF
##2D579F1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335EA2
Deuteranopia (green-blind)
#1D549E
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2d579f;
/* rgb */ color: rgb(45, 87, 159);
/* oklch */ color: oklch(46.6% 0.126 260.4);
Tailwind
colors: {
  custom: {
    50: '#7485bc',
    500: '#2d579f',
    950: '#000000',
  },
}
SCSS
$custom: #2d579f;
$custom-light: #7485bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d579f",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 159
  },
  "hsl": {
    "h": 217.895,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.46559,
    "c": 0.12599,
    "h": 260.4
  },
  "luminance": 0.09877
}

Semantic roles & 50–950 ramp

primary
#2D579F
secondary
#BE9F6A
accent
#A849DF
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2D579F

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

Preview Lab → · Contrast checker → · Palette generator →

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