#2F5989#2F5989

#2F5989 is a mid, moderate cyan. Relative luminance 0.096; OKLCH L 45.7% C 0.092 H 253.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2F5989
RGBrgb(47, 89, 137)
HSLhsl(212, 49%, 36%)
HSVhsv(212, 66%, 54%)
CMYKcmyk(65.7%, 35%, 0%, 46.3%)
CIE-LABlab(37.03, 1.48, -31.07)
CIE-LCHlch(37.03, 31.10, 272.72°)
OKLaboklab(45.71% -0.0266 -0.088)
OKLCHoklch(45.71% 0.092 253.2)
XYZxyz(9.2584, 9.5543, 25.0183)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5989 #895F2F
analogous
#2F8689 #2F5989 #322F89
triadic
#2F5989 #892F59 #59892F
tetradic
#2F5989 #892F86 #895F2F #2F8932
square
#2F5989 #892F86 #895F2F #2F8932
split-complementary
#2F5989 #89322F #86892F
monochromatic
#101E2E #1F3B5B #2F5989 #3F77B7 #6796CB

Accessibility & contrast

On white

7.21
#2F5989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5989
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5989#FFFFFF#000000##FFFFFF
##2F59891.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445C8B
Deuteranopia (green-blind)
#385388
Tritanopia (blue-blind)
#00646A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f5989;
/* rgb */ color: rgb(47, 89, 137);
/* oklch */ color: oklch(45.7% 0.092 253.2);
Tailwind
colors: {
  custom: {
    50: '#7187ab',
    500: '#2f5989',
    950: '#000000',
  },
}
SCSS
$custom: #2f5989;
$custom-light: #7187ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5989",
  "rgb": {
    "r": 47,
    "g": 89,
    "b": 137
  },
  "hsl": {
    "h": 212,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45711,
    "c": 0.09192,
    "h": 253.2
  },
  "luminance": 0.09555
}

Semantic roles & 50–950 ramp

primary
#2F5989
secondary
#B28D62
accent
#984FD8
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #2F5989

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

Preview Lab → · Contrast checker → · Palette generator →

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