#2F5286#2F5286

#2F5286 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 43.9% C 0.095 H 258.1°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2F5286
RGBrgb(47, 82, 134)
HSLhsl(216, 48%, 35%)
HSVhsv(216, 65%, 53%)
CMYKcmyk(64.9%, 38.8%, 0%, 47.5%)
CIE-LABlab(34.72, 4.90, -32.88)
CIE-LCHlch(34.72, 33.25, 278.47°)
OKLaboklab(43.86% -0.0196 -0.0934)
OKLCHoklch(43.86% 0.095 258.1)
XYZxyz(8.4911, 8.3594, 23.7157)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5286 #86632F
analogous
#2F7D86 #2F5286 #372F86
triadic
#2F5286 #862F52 #52862F
tetradic
#2F5286 #862F7D #86632F #2F8637
square
#2F5286 #862F7D #86632F #2F8637
split-complementary
#2F5286 #86372F #7D862F
monochromatic
#0F1B2B #1F3659 #2F5286 #3F6EB3 #668EC9

Accessibility & contrast

On white

7.86
#2F5286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2F5286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5286
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5286#FFFFFF#000000##FFFFFF
##2F52861.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5688
Deuteranopia (green-blind)
#2F4E85
Tritanopia (blue-blind)
#005E65
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f5286;
/* rgb */ color: rgb(47, 82, 134);
/* oklch */ color: oklch(43.9% 0.095 258.1);
Tailwind
colors: {
  custom: {
    50: '#7082a9',
    500: '#2f5286',
    950: '#000000',
  },
}
SCSS
$custom: #2f5286;
$custom-light: #7082a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5286",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 134
  },
  "hsl": {
    "h": 215.862,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43855,
    "c": 0.09541,
    "h": 258.1
  },
  "luminance": 0.0836
}

Semantic roles & 50–950 ramp

primary
#2F5286
secondary
#B09060
accent
#A150D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F5286

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

Preview Lab → · Contrast checker → · Palette generator →

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