#2F507D#2F507D

#2F507D is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.8% C 0.085 H 256.5°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#2F507D
RGBrgb(47, 80, 125)
HSLhsl(215, 45%, 34%)
HSVhsv(215, 62%, 49%)
CMYKcmyk(62.4%, 36%, 0%, 51%)
CIE-LABlab(33.61, 2.90, -29.10)
CIE-LCHlch(33.61, 29.24, 275.70°)
OKLaboklab(42.83% -0.0197 -0.0823)
OKLCHoklch(42.83% 0.085 256.5)
XYZxyz(7.7413, 7.8216, 20.4998)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F507D #7D5C2F
analogous
#2F777D #2F507D #352F7D
triadic
#2F507D #7D2F50 #507D2F
tetradic
#2F507D #7D2F77 #7D5C2F #2F7D35
square
#2F507D #7D2F77 #7D5C2F #2F7D35
split-complementary
#2F507D #7D352F #777D2F
monochromatic
#0E1724 #1E3451 #2F507D #406CA9 #628CC4

Accessibility & contrast

On white

8.19
#2F507D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F507D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F507D
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F507D#FFFFFF#000000##FFFFFF
##2F507D1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D537F
Deuteranopia (green-blind)
#334C7C
Tritanopia (blue-blind)
#005A60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f507d;
/* rgb */ color: rgb(47, 80, 125);
/* oklch */ color: oklch(42.8% 0.085 256.5);
Tailwind
colors: {
  custom: {
    50: '#6f80a3',
    500: '#2f507d',
    950: '#000000',
  },
}
SCSS
$custom: #2f507d;
$custom-light: #6f80a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f507d",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 125
  },
  "hsl": {
    "h": 214.615,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42826,
    "c": 0.08467,
    "h": 256.5
  },
  "luminance": 0.07822
}

Semantic roles & 50–950 ramp

primary
#2F507D
secondary
#AB8A5D
accent
#9E53D5
background
#F6F7FA
surface
#ECEEF3
border
#C7C9CD
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F507D

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

Preview Lab → · Contrast checker → · Palette generator →

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