#2F579B#2F579B

#2F579B is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.4% C 0.120 H 260.3°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#2F579B
RGBrgb(47, 87, 155)
HSLhsl(218, 53%, 40%)
HSVhsv(218, 70%, 61%)
CMYKcmyk(69.7%, 43.9%, 0%, 39.2%)
CIE-LABlab(37.46, 9.46, -41.28)
CIE-LCHlch(37.46, 42.35, 282.91°)
OKLaboklab(46.38% -0.0201 -0.1179)
OKLCHoklch(46.38% 0.12 260.3)
XYZxyz(10.4948, 9.7862, 32.3398)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F579B #9B732F
analogous
#2F8D9B #2F579B #3D2F9B
triadic
#2F579B #9B2F57 #579B2F
tetradic
#2F579B #9B2F8D #9B732F #2F9B3D
square
#2F579B #9B2F8D #9B732F #2F9B3D
split-complementary
#2F579B #9B3D2F #8D9B2F
monochromatic
#13223D #213D6C #2F579B #4272C6 #7195D4

Accessibility & contrast

On white

7.10
#2F579B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F579B
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F579B#FFFFFF#000000##FFFFFF
##2F579B1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365E9E
Deuteranopia (green-blind)
#24549A
Tritanopia (blue-blind)
#006771
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f579b;
/* rgb */ color: rgb(47, 87, 155);
/* oklch */ color: oklch(46.4% 0.120 260.3);
Tailwind
colors: {
  custom: {
    50: '#7485b9',
    500: '#2f579b',
    950: '#000000',
  },
}
SCSS
$custom: #2f579b;
$custom-light: #7485b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f579b",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 155
  },
  "hsl": {
    "h": 217.778,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46376,
    "c": 0.11962,
    "h": 260.3
  },
  "luminance": 0.09787
}

Semantic roles & 50–950 ramp

primary
#2F579B
secondary
#BB9D6A
accent
#A74BDD
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F579B

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

Preview Lab → · Contrast checker → · Palette generator →

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