#2F5898#2F5898

#2F5898 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 46.4% C 0.114 H 259.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2F5898
RGBrgb(47, 88, 152)
HSLhsl(217, 53%, 39%)
HSVhsv(217, 69%, 60%)
CMYKcmyk(69.1%, 42.1%, 0%, 40.4%)
CIE-LABlab(37.57, 7.68, -39.29)
CIE-LCHlch(37.57, 40.03, 281.06°)
OKLaboklab(46.41% -0.0217 -0.1121)
OKLCHoklch(46.41% 0.114 259)
XYZxyz(10.3275, 9.8497, 31.0566)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5898 #986F2F
analogous
#2F8D98 #2F5898 #3A2F98
triadic
#2F5898 #982F58 #58982F
tetradic
#2F5898 #982F8D #986F2F #2F983A
square
#2F5898 #982F8D #986F2F #2F983A
split-complementary
#2F5898 #983A2F #8D982F
monochromatic
#12223B #213D69 #2F5898 #4074C4 #6F96D2

Accessibility & contrast

On white

7.07
#2F5898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2F5898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5898
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5898#FFFFFF#000000##FFFFFF
##2F58981.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5E9B
Deuteranopia (green-blind)
#2A5497
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f5898;
/* rgb */ color: rgb(47, 88, 152);
/* oklch */ color: oklch(46.4% 0.114 259.0);
Tailwind
colors: {
  custom: {
    50: '#7486b7',
    500: '#2f5898',
    950: '#000000',
  },
}
SCSS
$custom: #2f5898;
$custom-light: #7486b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5898",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 152
  },
  "hsl": {
    "h": 216.571,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46407,
    "c": 0.11415,
    "h": 259
  },
  "luminance": 0.09851
}

Semantic roles & 50–950 ramp

primary
#2F5898
secondary
#BA9A69
accent
#A44CDC
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5898

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

Preview Lab → · Contrast checker → · Palette generator →

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