#2F5271#2F5271

#2F5271 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.6% C 0.066 H 246.8°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2F5271
RGBrgb(47, 82, 113)
HSLhsl(208, 41%, 31%)
HSVhsv(208, 58%, 44%)
CMYKcmyk(58.4%, 27.4%, 0%, 55.7%)
CIE-LABlab(33.63, -2.65, -21.61)
CIE-LCHlch(33.63, 21.77, 263.00°)
OKLaboklab(42.64% -0.026 -0.0606)
OKLCHoklch(42.64% 0.066 246.8)
XYZxyz(7.1691, 7.8306, 16.7532)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5271 #714E2F
analogous
#2F716F #2F5271 #2F3171
triadic
#2F5271 #712F52 #52712F
tetradic
#2F5271 #6F2F71 #714E2F #31712F
square
#2F5271 #6F2F71 #714E2F #31712F
split-complementary
#2F5271 #712F31 #716F2F
monochromatic
#0B131B #1D3346 #2F5271 #41719C #5E90BC

Accessibility & contrast

On white

8.18
#2F5271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5271
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5271#FFFFFF#000000##FFFFFF
##2F52711.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455372
Deuteranopia (green-blind)
#3C4C70
Tritanopia (blue-blind)
#00595D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f5271;
/* rgb */ color: rgb(47, 82, 113);
/* oklch */ color: oklch(42.6% 0.066 246.8);
Tailwind
colors: {
  custom: {
    50: '#6d829a',
    500: '#2f5271',
    950: '#000000',
  },
}
SCSS
$custom: #2f5271;
$custom-light: #6d829a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5271",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 208.182,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42641,
    "c": 0.06593,
    "h": 246.8
  },
  "luminance": 0.07831
}

Semantic roles & 50–950 ramp

primary
#2F5271
secondary
#A27C5A
accent
#9057D1
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2F5271

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

Preview Lab → · Contrast checker → · Palette generator →

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