#2F5897#2F5897

#2F5897 is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.3% C 0.113 H 258.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#2F5897
RGBrgb(47, 88, 151)
HSLhsl(216, 53%, 39%)
HSVhsv(216, 69%, 59%)
CMYKcmyk(68.9%, 41.7%, 0%, 40.8%)
CIE-LABlab(37.51, 7.31, -38.78)
CIE-LCHlch(37.51, 39.46, 280.67°)
OKLaboklab(46.34% -0.022 -0.1106)
OKLCHoklch(46.34% 0.113 258.8)
XYZxyz(10.2459, 9.8171, 30.6271)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5897 #976E2F
analogous
#2F8C97 #2F5897 #3A2F97
triadic
#2F5897 #972F58 #58972F
tetradic
#2F5897 #972F8C #976E2F #2F973A
square
#2F5897 #972F8C #976E2F #2F973A
split-complementary
#2F5897 #973A2F #8C972F
monochromatic
#12223A #203D68 #2F5897 #4074C3 #6E96D2

Accessibility & contrast

On white

7.09
#2F5897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2F5897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5897
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5897#FFFFFF#000000##FFFFFF
##2F58971.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5897;
/* rgb */ color: rgb(47, 88, 151);
/* oklch */ color: oklch(46.3% 0.113 258.8);
Tailwind
colors: {
  custom: {
    50: '#7486b6',
    500: '#2f5897',
    950: '#000000',
  },
}
SCSS
$custom: #2f5897;
$custom-light: #7486b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5897",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 151
  },
  "hsl": {
    "h": 216.346,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46342,
    "c": 0.11273,
    "h": 258.8
  },
  "luminance": 0.09818
}

Semantic roles & 50–950 ramp

primary
#2F5897
secondary
#B99968
accent
#A34CDC
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5897

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

Preview Lab → · Contrast checker → · Palette generator →

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