#2F5087#2F5087

#2F5087 is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.4% C 0.099 H 260.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#2F5087
RGBrgb(47, 80, 135)
HSLhsl(218, 48%, 36%)
HSVhsv(218, 65%, 53%)
CMYKcmyk(65.2%, 40.7%, 0%, 47.1%)
CIE-LABlab(34.17, 6.58, -34.37)
CIE-LCHlch(34.17, 35.00, 280.83°)
OKLaboklab(43.45% -0.0171 -0.0978)
OKLCHoklch(43.45% 0.099 260.1)
XYZxyz(8.4126, 8.0901, 24.0352)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5087 #87662F
analogous
#2F7C87 #2F5087 #3A2F87
triadic
#2F5087 #872F50 #50872F
tetradic
#2F5087 #872F7C #87662F #2F873A
square
#2F5087 #872F7C #87662F #2F873A
split-complementary
#2F5087 #873A2F #7C872F
monochromatic
#0F1A2C #1F355A #2F5087 #3F6BB4 #668CCA

Accessibility & contrast

On white

8.02
#2F5087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2F5087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5087
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5087#FFFFFF#000000##FFFFFF
##2F50871.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385589
Deuteranopia (green-blind)
#2B4D86
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f5087;
/* rgb */ color: rgb(47, 80, 135);
/* oklch */ color: oklch(43.4% 0.099 260.1);
Tailwind
colors: {
  custom: {
    50: '#7180aa',
    500: '#2f5087',
    950: '#000000',
  },
}
SCSS
$custom: #2f5087;
$custom-light: #7180aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5087",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 135
  },
  "hsl": {
    "h": 217.5,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43446,
    "c": 0.09925,
    "h": 260.1
  },
  "luminance": 0.08091
}

Semantic roles & 50–950 ramp

primary
#2F5087
secondary
#B19361
accent
#A550D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F5087

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

Preview Lab → · Contrast checker → · Palette generator →

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