#2F579C#2F579C

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

Color values

HEX#2F579C
RGBrgb(47, 87, 156)
HSLhsl(218, 54%, 40%)
HSVhsv(218, 70%, 61%)
CMYKcmyk(69.9%, 44.2%, 0%, 38.8%)
CIE-LABlab(37.52, 9.84, -41.78)
CIE-LCHlch(37.52, 42.92, 283.25°)
OKLaboklab(46.44% -0.0199 -0.1194)
OKLCHoklch(46.44% 0.121 260.5)
XYZxyz(10.5791, 9.8199, 32.7840)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F579C #9C742F
analogous
#2F8D9C #2F579C #3E2F9C
triadic
#2F579C #9C2F57 #579C2F
tetradic
#2F579C #9C2F8D #9C742F #2F9C3E
square
#2F579C #9C2F8D #9C742F #2F9C3E
split-complementary
#2F579C #9C3E2F #8D9C2F
monochromatic
#13233E #213D6D #2F579C #4273C6 #7196D4

Accessibility & contrast

On white

7.08
#2F579C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F579C
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F579C#FFFFFF#000000##FFFFFF
##2F579C1.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365E9F
Deuteranopia (green-blind)
#23549B
Tritanopia (blue-blind)
#006772
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f579c;
/* rgb */ color: rgb(47, 87, 156);
/* oklch */ color: oklch(46.4% 0.121 260.5);
Tailwind
colors: {
  custom: {
    50: '#7585ba',
    500: '#2f579c',
    950: '#000000',
  },
}
SCSS
$custom: #2f579c;
$custom-light: #7585ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f579c",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 156
  },
  "hsl": {
    "h": 217.982,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46443,
    "c": 0.12104,
    "h": 260.5
  },
  "luminance": 0.09821
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F579C

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

Preview Lab → · Contrast checker → · Palette generator →

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