#2F5787#2F5787

#2F5787 is a mid, moderate cyan. Relative luminance 0.092; OKLCH L 45.1% C 0.091 H 254.1°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#2F5787
RGBrgb(47, 87, 135)
HSLhsl(213, 48%, 36%)
HSVhsv(213, 65%, 53%)
CMYKcmyk(65.2%, 35.6%, 0%, 47.1%)
CIE-LABlab(36.31, 2.03, -30.99)
CIE-LCHlch(36.31, 31.05, 273.74°)
OKLaboklab(45.11% -0.0249 -0.0878)
OKLCHoklch(45.11% 0.091 254.1)
XYZxyz(8.9521, 9.1691, 24.2150)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5787 #875F2F
analogous
#2F8387 #2F5787 #332F87
triadic
#2F5787 #872F57 #57872F
tetradic
#2F5787 #872F83 #875F2F #2F8733
square
#2F5787 #872F83 #875F2F #2F8733
split-complementary
#2F5787 #87332F #83872F
monochromatic
#0F1C2C #1F3A5A #2F5787 #3F74B4 #6694CA

Accessibility & contrast

On white

7.41
#2F5787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2F5787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5787
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5787#FFFFFF#000000##FFFFFF
##2F57871.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425A89
Deuteranopia (green-blind)
#365286
Tritanopia (blue-blind)
#006268
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f5787;
/* rgb */ color: rgb(47, 87, 135);
/* oklch */ color: oklch(45.1% 0.091 254.1);
Tailwind
colors: {
  custom: {
    50: '#7186aa',
    500: '#2f5787',
    950: '#000000',
  },
}
SCSS
$custom: #2f5787;
$custom-light: #7186aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5787",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 135
  },
  "hsl": {
    "h": 212.727,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4511,
    "c": 0.09125,
    "h": 254.1
  },
  "luminance": 0.0917
}

Semantic roles & 50–950 ramp

primary
#2F5787
secondary
#B18D61
accent
#9A50D8
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #2F5787

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

Preview Lab → · Contrast checker → · Palette generator →

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