#2F5A87#2F5A87

#2F5A87 is a mid, moderate cyan. Relative luminance 0.097; OKLCH L 45.8% C 0.088 H 251.3°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#2F5A87
RGBrgb(47, 90, 135)
HSLhsl(211, 48%, 36%)
HSVhsv(211, 65%, 53%)
CMYKcmyk(65.2%, 33.3%, 0%, 47.1%)
CIE-LABlab(37.23, 0.11, -29.53)
CIE-LCHlch(37.23, 29.53, 270.22°)
OKLaboklab(45.84% -0.0283 -0.0835)
OKLCHoklch(45.84% 0.088 251.3)
XYZxyz(9.2000, 9.6650, 24.2977)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5A87 #875C2F
analogous
#2F8687 #2F5A87 #302F87
triadic
#2F5A87 #872F5A #5A872F
tetradic
#2F5A87 #872F86 #875C2F #2F8730
square
#2F5A87 #872F86 #875C2F #2F8730
split-complementary
#2F5A87 #87302F #86872F
monochromatic
#0F1D2C #1F3C5A #2F5A87 #3F78B4 #6697CA

Accessibility & contrast

On white

7.16
#2F5A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2F5A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5A87
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5A87#FFFFFF#000000##FFFFFF
##2F5A871.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475C89
Deuteranopia (green-blind)
#3B5486
Tritanopia (blue-blind)
#00646A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f5a87;
/* rgb */ color: rgb(47, 90, 135);
/* oklch */ color: oklch(45.8% 0.088 251.3);
Tailwind
colors: {
  custom: {
    50: '#7188aa',
    500: '#2f5a87',
    950: '#000000',
  },
}
SCSS
$custom: #2f5a87;
$custom-light: #7188aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5a87",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 135
  },
  "hsl": {
    "h": 210.682,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45836,
    "c": 0.08817,
    "h": 251.3
  },
  "luminance": 0.09666
}

Semantic roles & 50–950 ramp

primary
#2F5A87
secondary
#B18A61
accent
#9550D8
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #2F5A87

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

Preview Lab → · Contrast checker → · Palette generator →

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