#2F5086#2F5086

#2F5086 is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.4% C 0.098 H 259.8°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#2F5086
RGBrgb(47, 80, 134)
HSLhsl(217, 48%, 35%)
HSVhsv(217, 65%, 53%)
CMYKcmyk(64.9%, 40.3%, 0%, 47.5%)
CIE-LABlab(34.11, 6.21, -33.85)
CIE-LCHlch(34.11, 34.41, 280.39°)
OKLaboklab(43.38% -0.0174 -0.0962)
OKLCHoklch(43.38% 0.098 259.8)
XYZxyz(8.3425, 8.0621, 23.6661)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5086 #86652F
analogous
#2F7B86 #2F5086 #392F86
triadic
#2F5086 #862F50 #50862F
tetradic
#2F5086 #862F7B #86652F #2F8639
square
#2F5086 #862F7B #86652F #2F8639
split-complementary
#2F5086 #86392F #7B862F
monochromatic
#0F1A2B #1F3559 #2F5086 #3F6BB3 #668CC9

Accessibility & contrast

On white

8.04
#2F5086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2F5086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5086
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5086#FFFFFF#000000##FFFFFF
##2F50861.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385588
Deuteranopia (green-blind)
#2C4C85
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f5086;
/* rgb */ color: rgb(47, 80, 134);
/* oklch */ color: oklch(43.4% 0.098 259.8);
Tailwind
colors: {
  custom: {
    50: '#7080a9',
    500: '#2f5086',
    950: '#000000',
  },
}
SCSS
$custom: #2f5086;
$custom-light: #7080a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5086",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 134
  },
  "hsl": {
    "h": 217.241,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43382,
    "c": 0.09779,
    "h": 259.8
  },
  "luminance": 0.08063
}

Semantic roles & 50–950 ramp

primary
#2F5086
secondary
#B09260
accent
#A450D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F5086

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

Preview Lab → · Contrast checker → · Palette generator →

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