#2F5598#2F5598

#2F5598 is a mid, moderate blue. Relative luminance 0.094; OKLCH L 45.7% C 0.118 H 260.9°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#2F5598
RGBrgb(47, 85, 152)
HSLhsl(218, 53%, 39%)
HSVhsv(218, 69%, 60%)
CMYKcmyk(69.1%, 44.1%, 0%, 40.4%)
CIE-LABlab(36.68, 9.64, -40.71)
CIE-LCHlch(36.68, 41.83, 283.33°)
OKLaboklab(45.72% -0.0187 -0.1163)
OKLCHoklch(45.72% 0.118 260.9)
XYZxyz(10.0863, 9.3673, 30.9762)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5598 #98722F
analogous
#2F8A98 #2F5598 #3E2F98
triadic
#2F5598 #982F55 #55982F
tetradic
#2F5598 #982F8A #98722F #2F983E
square
#2F5598 #982F8A #98722F #2F983E
split-complementary
#2F5598 #983E2F #8A982F
monochromatic
#12213B #213B69 #2F5598 #4070C4 #6F93D2

Accessibility & contrast

On white

7.31
#2F5598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2F5598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5598
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5598#FFFFFF#000000##FFFFFF
##2F55981.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355C9B
Deuteranopia (green-blind)
#235297
Tritanopia (blue-blind)
#00646F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f5598;
/* rgb */ color: rgb(47, 85, 152);
/* oklch */ color: oklch(45.7% 0.118 260.9);
Tailwind
colors: {
  custom: {
    50: '#7484b7',
    500: '#2f5598',
    950: '#000000',
  },
}
SCSS
$custom: #2f5598;
$custom-light: #7484b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5598",
  "rgb": {
    "r": 47,
    "g": 85,
    "b": 152
  },
  "hsl": {
    "h": 218.286,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45719,
    "c": 0.11778,
    "h": 260.9
  },
  "luminance": 0.09368
}

Semantic roles & 50–950 ramp

primary
#2F5598
secondary
#BA9D69
accent
#A84CDC
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F5598

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

Preview Lab → · Contrast checker → · Palette generator →

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