#2F5698#2F5698

#2F5698 is a mid, moderate blue. Relative luminance 0.095; OKLCH L 45.9% C 0.117 H 260.3°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2F5698
RGBrgb(47, 86, 152)
HSLhsl(218, 53%, 39%)
HSVhsv(218, 69%, 60%)
CMYKcmyk(69.1%, 43.4%, 0%, 40.4%)
CIE-LABlab(36.98, 8.99, -40.23)
CIE-LCHlch(36.98, 41.23, 282.59°)
OKLaboklab(45.95% -0.0197 -0.1149)
OKLCHoklch(45.95% 0.117 260.3)
XYZxyz(10.1656, 9.5259, 31.0026)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5698 #98712F
analogous
#2F8B98 #2F5698 #3C2F98
triadic
#2F5698 #982F56 #56982F
tetradic
#2F5698 #982F8B #98712F #2F983C
square
#2F5698 #982F8B #98712F #2F983C
split-complementary
#2F5698 #983C2F #8B982F
monochromatic
#12213B #213C69 #2F5698 #4071C4 #6F94D2

Accessibility & contrast

On white

7.23
#2F5698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2F5698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5698
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5698#FFFFFF#000000##FFFFFF
##2F56981.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375C9B
Deuteranopia (green-blind)
#265297
Tritanopia (blue-blind)
#00656F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f5698;
/* rgb */ color: rgb(47, 86, 152);
/* oklch */ color: oklch(45.9% 0.117 260.3);
Tailwind
colors: {
  custom: {
    50: '#7485b7',
    500: '#2f5698',
    950: '#000000',
  },
}
SCSS
$custom: #2f5698;
$custom-light: #7485b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5698",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 152
  },
  "hsl": {
    "h": 217.714,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45947,
    "c": 0.11655,
    "h": 260.3
  },
  "luminance": 0.09527
}

Semantic roles & 50–950 ramp

primary
#2F5698
secondary
#BA9C69
accent
#A64CDC
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5698

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

Preview Lab → · Contrast checker → · Palette generator →

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