#2F579F#2F579F

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

Color values

HEX#2F579F
RGBrgb(47, 87, 159)
HSLhsl(219, 54%, 40%)
HSVhsv(219, 70%, 62%)
CMYKcmyk(70.4%, 45.3%, 0%, 37.6%)
CIE-LABlab(37.70, 10.97, -43.28)
CIE-LCHlch(37.70, 44.65, 284.22°)
OKLaboklab(46.65% -0.0193 -0.1238)
OKLCHoklch(46.65% 0.125 261.1)
XYZxyz(10.8363, 9.9228, 34.1384)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F579F #9F772F
analogous
#2F8F9F #2F579F #3F2F9F
triadic
#2F579F #9F2F57 #579F2F
tetradic
#2F579F #9F2F8F #9F772F #2F9F3F
square
#2F579F #9F2F8F #9F772F #2F9F3F
split-complementary
#2F579F #9F3F2F #8F9F2F
monochromatic
#132341 #213D70 #2F579F #4473C8 #7396D6

Accessibility & contrast

On white

7.04
#2F579F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F579F
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F579F#FFFFFF#000000##FFFFFF
##2F579F1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f579f;
/* rgb */ color: rgb(47, 87, 159);
/* oklch */ color: oklch(46.6% 0.125 261.1);
Tailwind
colors: {
  custom: {
    50: '#7585bc',
    500: '#2f579f',
    950: '#000000',
  },
}
SCSS
$custom: #2f579f;
$custom-light: #7585bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f579f",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 159
  },
  "hsl": {
    "h": 218.571,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46647,
    "c": 0.1253,
    "h": 261.1
  },
  "luminance": 0.09924
}

Semantic roles & 50–950 ramp

primary
#2F579F
secondary
#BDA06D
accent
#A94ADE
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F579F

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

Preview Lab → · Contrast checker → · Palette generator →

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