#2F579D#2F579D

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

Color values

HEX#2F579D
RGBrgb(47, 87, 157)
HSLhsl(218, 54%, 40%)
HSVhsv(218, 70%, 62%)
CMYKcmyk(70.1%, 44.6%, 0%, 38.4%)
CIE-LABlab(37.58, 10.21, -42.28)
CIE-LCHlch(37.58, 43.49, 283.58°)
OKLaboklab(46.51% -0.0197 -0.1209)
OKLCHoklch(46.51% 0.122 260.7)
XYZxyz(10.6641, 9.8540, 33.2317)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F579D #9D752F
analogous
#2F8E9D #2F579D #3E2F9D
triadic
#2F579D #9D2F57 #579D2F
tetradic
#2F579D #9D2F8E #9D752F #2F9D3E
square
#2F579D #9D2F8E #9D752F #2F9D3E
split-complementary
#2F579D #9D3E2F #8E9D2F
monochromatic
#13233F #213D6E #2F579D #4373C7 #7296D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F579D#FFFFFF#000000##FFFFFF
##2F579D1.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)
#355EA0
Deuteranopia (green-blind)
#22549C
Tritanopia (blue-blind)
#006772
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f579d;
/* rgb */ color: rgb(47, 87, 157);
/* oklch */ color: oklch(46.5% 0.122 260.7);
Tailwind
colors: {
  custom: {
    50: '#7585ba',
    500: '#2f579d',
    950: '#000000',
  },
}
SCSS
$custom: #2f579d;
$custom-light: #7585ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f579d",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 157
  },
  "hsl": {
    "h": 218.182,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.46511,
    "c": 0.12246,
    "h": 260.7
  },
  "luminance": 0.09855
}

Semantic roles & 50–950 ramp

primary
#2F579D
secondary
#BC9F6B
accent
#A84BDD
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F579D

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

Preview Lab → · Contrast checker → · Palette generator →

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