#2F508D#2F508D

#2F508D is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.8% C 0.108 H 261.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#2F508D
RGBrgb(47, 80, 141)
HSLhsl(219, 50%, 37%)
HSVhsv(219, 67%, 55%)
CMYKcmyk(66.7%, 43.3%, 0%, 44.7%)
CIE-LABlab(34.53, 8.81, -37.48)
CIE-LCHlch(34.53, 38.50, 283.23°)
OKLaboklab(43.84% -0.0158 -0.1069)
OKLCHoklch(43.84% 0.108 261.6)
XYZxyz(8.8470, 8.2639, 26.3230)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F508D #8D6C2F
analogous
#2F7F8D #2F508D #3D2F8D
triadic
#2F508D #8D2F50 #508D2F
tetradic
#2F508D #8D2F7F #8D6C2F #2F8D3D
square
#2F508D #8D2F7F #8D6C2F #2F8D3D
split-complementary
#2F508D #8D3D2F #7F8D2F
monochromatic
#101C31 #20365F #2F508D #3E6ABB #698CCD

Accessibility & contrast

On white

7.92
#2F508D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2F508D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F508D
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F508D#FFFFFF#000000##FFFFFF
##2F508D1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34568F
Deuteranopia (green-blind)
#254D8C
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f508d;
/* rgb */ color: rgb(47, 80, 141);
/* oklch */ color: oklch(43.8% 0.108 261.6);
Tailwind
colors: {
  custom: {
    50: '#7280af',
    500: '#2f508d',
    950: '#000000',
  },
}
SCSS
$custom: #2f508d;
$custom-light: #7280af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f508d",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 141
  },
  "hsl": {
    "h": 218.936,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43838,
    "c": 0.10803,
    "h": 261.6
  },
  "luminance": 0.08265
}

Semantic roles & 50–950 ramp

primary
#2F508D
secondary
#B49864
accent
#A94EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F508D

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

Preview Lab → · Contrast checker → · Palette generator →

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