#2F508F#2F508F

#2F508F is a dark, moderate blue. Relative luminance 0.083; OKLCH L 44.0% C 0.111 H 262.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#2F508F
RGBrgb(47, 80, 143)
HSLhsl(219, 51%, 37%)
HSVhsv(219, 67%, 56%)
CMYKcmyk(67.1%, 44.1%, 0%, 43.9%)
CIE-LABlab(34.65, 9.56, -38.50)
CIE-LCHlch(34.65, 39.67, 283.94°)
OKLaboklab(43.97% -0.0154 -0.1099)
OKLCHoklch(43.97% 0.111 262)
XYZxyz(8.9971, 8.3240, 27.1138)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F508F #8F6E2F
analogous
#2F808F #2F508F #3E2F8F
triadic
#2F508F #8F2F50 #508F2F
tetradic
#2F508F #8F2F80 #8F6E2F #2F8F3E
square
#2F508F #8F2F80 #8F6E2F #2F8F3E
split-complementary
#2F508F #8F3E2F #808F2F
monochromatic
#111C33 #203661 #2F508F #3E6ABD #6A8DCE

Accessibility & contrast

On white

7.88
#2F508F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2F508F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F508F
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F508F#FFFFFF#000000##FFFFFF
##2F508F1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325691
Deuteranopia (green-blind)
#234D8E
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f508f;
/* rgb */ color: rgb(47, 80, 143);
/* oklch */ color: oklch(44.0% 0.111 262.0);
Tailwind
colors: {
  custom: {
    50: '#7280b0',
    500: '#2f508f',
    950: '#000000',
  },
}
SCSS
$custom: #2f508f;
$custom-light: #7280b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f508f",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 143
  },
  "hsl": {
    "h": 219.375,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43971,
    "c": 0.11095,
    "h": 262
  },
  "luminance": 0.08325
}

Semantic roles & 50–950 ramp

primary
#2F508F
secondary
#B59A65
accent
#AA4EDA
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #2F508F

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

Preview Lab → · Contrast checker → · Palette generator →

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