#2F579E#2F579E

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

Color values

HEX#2F579E
RGBrgb(47, 87, 158)
HSLhsl(218, 54%, 40%)
HSVhsv(218, 70%, 62%)
CMYKcmyk(70.3%, 44.9%, 0%, 38%)
CIE-LABlab(37.64, 10.59, -42.78)
CIE-LCHlch(37.64, 44.07, 283.90°)
OKLaboklab(46.58% -0.0195 -0.1223)
OKLCHoklch(46.58% 0.124 260.9)
XYZxyz(10.7498, 9.8882, 33.6832)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F579E #9E762F
analogous
#2F8F9E #2F579E #3E2F9E
triadic
#2F579E #9E2F57 #579E2F
tetradic
#2F579E #9E2F8F #9E762F #2F9E3E
square
#2F579E #9E2F8F #9E762F #2F9E3E
split-complementary
#2F579E #9E3E2F #8F9E2F
monochromatic
#132340 #213D6F #2F579E #4373C7 #7296D5

Accessibility & contrast

On white

7.05
#2F579E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F579E
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F579E#FFFFFF#000000##FFFFFF
##2F579E1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345EA1
Deuteranopia (green-blind)
#20549D
Tritanopia (blue-blind)
#006773
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f579e;
/* rgb */ color: rgb(47, 87, 158);
/* oklch */ color: oklch(46.6% 0.124 260.9);
Tailwind
colors: {
  custom: {
    50: '#7585bb',
    500: '#2f579e',
    950: '#000000',
  },
}
SCSS
$custom: #2f579e;
$custom-light: #7585bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f579e",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 158
  },
  "hsl": {
    "h": 218.378,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46579,
    "c": 0.12388,
    "h": 260.9
  },
  "luminance": 0.09889
}

Semantic roles & 50–950 ramp

primary
#2F579E
secondary
#BDA06C
accent
#A84ADE
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F579E

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

Preview Lab → · Contrast checker → · Palette generator →

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