#2F508B#2F508B

#2F508B is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.7% C 0.105 H 261.1°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#2F508B
RGBrgb(47, 80, 139)
HSLhsl(218, 49%, 36%)
HSVhsv(218, 66%, 55%)
CMYKcmyk(66.2%, 42.4%, 0%, 45.5%)
CIE-LABlab(34.41, 8.06, -36.45)
CIE-LCHlch(34.41, 37.33, 282.48°)
OKLaboklab(43.71% -0.0162 -0.1038)
OKLCHoklch(43.71% 0.105 261.1)
XYZxyz(8.6995, 8.2049, 25.5463)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F508B #8B6A2F
analogous
#2F7E8B #2F508B #3C2F8B
triadic
#2F508B #8B2F50 #508B2F
tetradic
#2F508B #8B2F7E #8B6A2F #2F8B3C
square
#2F508B #8B2F7E #8B6A2F #2F8B3C
split-complementary
#2F508B #8B3C2F #7E8B2F
monochromatic
#101B30 #20365D #2F508B #3E6AB9 #688CCC

Accessibility & contrast

On white

7.95
#2F508B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2F508B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F508B
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F508B#FFFFFF#000000##FFFFFF
##2F508B1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35558D
Deuteranopia (green-blind)
#274D8A
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f508b;
/* rgb */ color: rgb(47, 80, 139);
/* oklch */ color: oklch(43.7% 0.105 261.1);
Tailwind
colors: {
  custom: {
    50: '#7180ad',
    500: '#2f508b',
    950: '#000000',
  },
}
SCSS
$custom: #2f508b;
$custom-light: #7180ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f508b",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 139
  },
  "hsl": {
    "h": 218.478,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43705,
    "c": 0.10511,
    "h": 261.1
  },
  "luminance": 0.08206
}

Semantic roles & 50–950 ramp

primary
#2F508B
secondary
#B39663
accent
#A74FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F508B

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

Preview Lab → · Contrast checker → · Palette generator →

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