#2F508A#2F508A

#2F508A is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.104 H 260.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2F508A
RGBrgb(47, 80, 138)
HSLhsl(218, 49%, 36%)
HSVhsv(218, 66%, 54%)
CMYKcmyk(65.9%, 42%, 0%, 45.9%)
CIE-LABlab(34.35, 7.69, -35.93)
CIE-LCHlch(34.35, 36.74, 282.08°)
OKLaboklab(43.64% -0.0164 -0.1023)
OKLCHoklch(43.64% 0.104 260.9)
XYZxyz(8.6268, 8.1758, 25.1633)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F508A #8A692F
analogous
#2F7E8A #2F508A #3C2F8A
triadic
#2F508A #8A2F50 #508A2F
tetradic
#2F508A #8A2F7E #8A692F #2F8A3C
square
#2F508A #8A2F7E #8A692F #2F8A3C
split-complementary
#2F508A #8A3C2F #7E8A2F
monochromatic
#101B2F #1F365C #2F508A #3F6AB8 #688CCC

Accessibility & contrast

On white

7.97
#2F508A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F508A
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F508A#FFFFFF#000000##FFFFFF
##2F508A1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36558C
Deuteranopia (green-blind)
#284D89
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f508a;
/* rgb */ color: rgb(47, 80, 138);
/* oklch */ color: oklch(43.6% 0.104 260.9);
Tailwind
colors: {
  custom: {
    50: '#7180ac',
    500: '#2f508a',
    950: '#000000',
  },
}
SCSS
$custom: #2f508a;
$custom-light: #7180ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f508a",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 138
  },
  "hsl": {
    "h": 218.242,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4364,
    "c": 0.10364,
    "h": 260.9
  },
  "luminance": 0.08177
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F508A

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

Preview Lab → · Contrast checker → · Palette generator →

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