#2F507F#2F507F

#2F507F is a dark, moderate blue. Relative luminance 0.079; OKLCH L 42.9% C 0.088 H 257.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2F507F
RGBrgb(47, 80, 127)
HSLhsl(215, 46%, 34%)
HSVhsv(215, 63%, 50%)
CMYKcmyk(63%, 37%, 0%, 50.2%)
CIE-LABlab(33.72, 3.63, -30.16)
CIE-LCHlch(33.72, 30.38, 276.87°)
OKLaboklab(42.95% -0.0192 -0.0854)
OKLCHoklch(42.95% 0.088 257.4)
XYZxyz(7.8704, 7.8733, 21.1795)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F507F #7F5E2F
analogous
#2F787F #2F507F #362F7F
triadic
#2F507F #7F2F50 #507F2F
tetradic
#2F507F #7F2F78 #7F5E2F #2F7F36
square
#2F507F #7F2F78 #7F5E2F #2F7F36
split-complementary
#2F507F #7F362F #787F2F
monochromatic
#0E1826 #1E3452 #2F507F #406CAC #638CC5

Accessibility & contrast

On white

8.16
#2F507F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F507F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F507F
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F507F#FFFFFF#000000##FFFFFF
##2F507F1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5381
Deuteranopia (green-blind)
#314C7E
Tritanopia (blue-blind)
#005B61
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f507f;
/* rgb */ color: rgb(47, 80, 127);
/* oklch */ color: oklch(42.9% 0.088 257.4);
Tailwind
colors: {
  custom: {
    50: '#6f80a4',
    500: '#2f507f',
    950: '#000000',
  },
}
SCSS
$custom: #2f507f;
$custom-light: #6f80a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f507f",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 127
  },
  "hsl": {
    "h": 215.25,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42947,
    "c": 0.08757,
    "h": 257.4
  },
  "luminance": 0.07874
}

Semantic roles & 50–950 ramp

primary
#2F507F
secondary
#AC8C5E
accent
#9F52D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F507F

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

Preview Lab → · Contrast checker → · Palette generator →

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