#2F5F87#2F5F87

#2F5F87 is a mid, moderate cyan. Relative luminance 0.105; OKLCH L 47.1% C 0.084 H 246.0°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#2F5F87
RGBrgb(47, 95, 135)
HSLhsl(207, 48%, 36%)
HSVhsv(207, 65%, 53%)
CMYKcmyk(65.2%, 29.6%, 0%, 47.1%)
CIE-LABlab(38.79, -3.02, -27.09)
CIE-LCHlch(38.79, 27.25, 263.64°)
OKLaboklab(47.06% -0.034 -0.0763)
OKLCHoklch(47.06% 0.084 246)
XYZxyz(9.6360, 10.5371, 24.4430)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5F87 #87572F
analogous
#2F8783 #2F5F87 #2F3387
triadic
#2F5F87 #872F5F #5F872F
tetradic
#2F5F87 #832F87 #87572F #33872F
square
#2F5F87 #832F87 #87572F #33872F
split-complementary
#2F5F87 #872F33 #87832F
monochromatic
#0F1F2C #1F3F5A #2F5F87 #3F7FB4 #669DCA

Accessibility & contrast

On white

6.76
#2F5F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2F5F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5F87
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5F87#FFFFFF#000000##FFFFFF
##2F5F871.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6089
Deuteranopia (green-blind)
#425786
Tritanopia (blue-blind)
#00696D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f5f87;
/* rgb */ color: rgb(47, 95, 135);
/* oklch */ color: oklch(47.1% 0.084 246.0);
Tailwind
colors: {
  custom: {
    50: '#718caa',
    500: '#2f5f87',
    950: '#000000',
  },
}
SCSS
$custom: #2f5f87;
$custom-light: #718caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5f87",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 135
  },
  "hsl": {
    "h": 207.273,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47059,
    "c": 0.08357,
    "h": 246
  },
  "luminance": 0.10538
}

Semantic roles & 50–950 ramp

primary
#2F5F87
secondary
#B18561
accent
#8E50D8
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C10
muted
#7B7D7F

Preview Lab

Preview with #2F5F87

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

Preview Lab → · Contrast checker → · Palette generator →

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