#2D579D#2D579D

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

Color values

HEX#2D579D
RGBrgb(45, 87, 157)
HSLhsl(218, 55%, 40%)
HSVhsv(218, 71%, 62%)
CMYKcmyk(71.3%, 44.6%, 0%, 38.4%)
CIE-LABlab(37.49, 9.89, -42.42)
CIE-LCHlch(37.49, 43.56, 283.13°)
OKLaboklab(46.42% -0.0213 -0.1213)
OKLCHoklch(46.42% 0.123 260)
XYZxyz(10.5740, 9.8075, 33.2275)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D579D #9D732D
analogous
#2D8F9D #2D579D #3B2D9D
triadic
#2D579D #9D2D57 #579D2D
tetradic
#2D579D #9D2D8F #9D732D #2D9D3B
square
#2D579D #9D2D8F #9D732D #2D9D3B
split-complementary
#2D579D #9D3B2D #8F9D2D
monochromatic
#12223E #1F3D6D #2D579D #3F72C8 #6F95D6

Accessibility & contrast

On white

7.09
#2D579D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2D579D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D579D
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D579D#FFFFFF#000000##FFFFFF
##2D579D1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d579d;
/* rgb */ color: rgb(45, 87, 157);
/* oklch */ color: oklch(46.4% 0.123 260.0);
Tailwind
colors: {
  custom: {
    50: '#7485ba',
    500: '#2d579d',
    950: '#000000',
  },
}
SCSS
$custom: #2d579d;
$custom-light: #7485ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d579d",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 157
  },
  "hsl": {
    "h": 217.5,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46422,
    "c": 0.12317,
    "h": 260
  },
  "luminance": 0.09809
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D579D

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

Preview Lab → · Contrast checker → · Palette generator →

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