#2F5281#2F5281

#2F5281 is a dark, moderate cyan. Relative luminance 0.082; OKLCH L 43.5% C 0.088 H 256.3°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#2F5281
RGBrgb(47, 82, 129)
HSLhsl(214, 47%, 35%)
HSVhsv(214, 64%, 51%)
CMYKcmyk(63.6%, 36.4%, 0%, 49.4%)
CIE-LABlab(34.44, 3.06, -30.25)
CIE-LCHlch(34.44, 30.40, 275.78°)
OKLaboklab(43.55% -0.0209 -0.0857)
OKLCHoklch(43.55% 0.088 256.3)
XYZxyz(8.1506, 8.2232, 21.9223)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5281 #815E2F
analogous
#2F7B81 #2F5281 #352F81
triadic
#2F5281 #812F52 #52812F
tetradic
#2F5281 #812F7B #815E2F #2F8135
square
#2F5281 #812F7B #815E2F #2F8135
split-complementary
#2F5281 #81352F #7B812F
monochromatic
#0E1927 #1F3554 #2F5281 #3F6FAE #648EC6

Accessibility & contrast

On white

7.94
#2F5281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5281
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5281#FFFFFF#000000##FFFFFF
##2F52811.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5583
Deuteranopia (green-blind)
#334D80
Tritanopia (blue-blind)
#005D63
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5281;
/* rgb */ color: rgb(47, 82, 129);
/* oklch */ color: oklch(43.5% 0.088 256.3);
Tailwind
colors: {
  custom: {
    50: '#7082a6',
    500: '#2f5281',
    950: '#000000',
  },
}
SCSS
$custom: #2f5281;
$custom-light: #7082a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5281",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 129
  },
  "hsl": {
    "h": 214.39,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.43548,
    "c": 0.0882,
    "h": 256.3
  },
  "luminance": 0.08224
}

Semantic roles & 50–950 ramp

primary
#2F5281
secondary
#AD8C5E
accent
#9E52D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F5281

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

Preview Lab → · Contrast checker → · Palette generator →

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