#2F5899#2F5899

#2F5899 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 46.5% C 0.116 H 259.3°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#2F5899
RGBrgb(47, 88, 153)
HSLhsl(217, 53%, 39%)
HSVhsv(217, 69%, 60%)
CMYKcmyk(69.3%, 42.5%, 0%, 40%)
CIE-LABlab(37.63, 8.06, -39.79)
CIE-LCHlch(37.63, 40.60, 281.44°)
OKLaboklab(46.47% -0.0215 -0.1135)
OKLCHoklch(46.47% 0.116 259.3)
XYZxyz(10.4097, 9.8826, 31.4898)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5899 #99702F
analogous
#2F8D99 #2F5899 #3B2F99
triadic
#2F5899 #992F58 #58992F
tetradic
#2F5899 #992F8D #99702F #2F993B
square
#2F5899 #992F8D #99702F #2F993B
split-complementary
#2F5899 #993B2F #8D992F
monochromatic
#12223B #213D6A #2F5899 #4174C5 #6F96D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F5899#FFFFFF#000000##FFFFFF
##2F58991.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)
#3A5E9C
Deuteranopia (green-blind)
#295498
Tritanopia (blue-blind)
#006771
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f5899;
/* rgb */ color: rgb(47, 88, 153);
/* oklch */ color: oklch(46.5% 0.116 259.3);
Tailwind
colors: {
  custom: {
    50: '#7486b7',
    500: '#2f5899',
    950: '#000000',
  },
}
SCSS
$custom: #2f5899;
$custom-light: #7486b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5899",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 153
  },
  "hsl": {
    "h": 216.792,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46472,
    "c": 0.11557,
    "h": 259.3
  },
  "luminance": 0.09884
}

Semantic roles & 50–950 ramp

primary
#2F5899
secondary
#BA9B69
accent
#A44BDC
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5899

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

Preview Lab → · Contrast checker → · Palette generator →

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