#2F5987#2F5987

#2F5987 is a mid, moderate cyan. Relative luminance 0.095; OKLCH L 45.6% C 0.089 H 252.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#2F5987
RGBrgb(47, 89, 135)
HSLhsl(211, 48%, 36%)
HSVhsv(211, 65%, 53%)
CMYKcmyk(65.2%, 34.1%, 0%, 47.1%)
CIE-LABlab(36.92, 0.75, -30.01)
CIE-LCHlch(36.92, 30.02, 271.43°)
OKLaboklab(45.59% -0.0272 -0.0849)
OKLCHoklch(45.59% 0.089 252.2)
XYZxyz(9.1162, 9.4975, 24.2697)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5987 #875D2F
analogous
#2F8587 #2F5987 #312F87
triadic
#2F5987 #872F59 #59872F
tetradic
#2F5987 #872F85 #875D2F #2F8731
square
#2F5987 #872F85 #875D2F #2F8731
split-complementary
#2F5987 #87312F #85872F
monochromatic
#0F1D2C #1F3B5A #2F5987 #3F77B4 #6696CA

Accessibility & contrast

On white

7.24
#2F5987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2F5987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5987
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5987#FFFFFF#000000##FFFFFF
##2F59871.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455C89
Deuteranopia (green-blind)
#395386
Tritanopia (blue-blind)
#00646A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f5987;
/* rgb */ color: rgb(47, 89, 135);
/* oklch */ color: oklch(45.6% 0.089 252.2);
Tailwind
colors: {
  custom: {
    50: '#7187aa',
    500: '#2f5987',
    950: '#000000',
  },
}
SCSS
$custom: #2f5987;
$custom-light: #7187aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5987",
  "rgb": {
    "r": 47,
    "g": 89,
    "b": 135
  },
  "hsl": {
    "h": 211.364,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45593,
    "c": 0.08917,
    "h": 252.2
  },
  "luminance": 0.09498
}

Semantic roles & 50–950 ramp

primary
#2F5987
secondary
#B18B61
accent
#9750D8
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #2F5987

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

Preview Lab → · Contrast checker → · Palette generator →

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