#2F5186#2F5186

#2F5186 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.097 H 259.0°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#2F5186
RGBrgb(47, 81, 134)
HSLhsl(217, 48%, 35%)
HSVhsv(217, 65%, 53%)
CMYKcmyk(64.9%, 39.6%, 0%, 47.5%)
CIE-LABlab(34.42, 5.55, -33.37)
CIE-LCHlch(34.42, 33.83, 279.44°)
OKLaboklab(43.62% -0.0185 -0.0948)
OKLCHoklch(43.62% 0.097 259)
XYZxyz(8.4163, 8.2096, 23.6907)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5186 #86642F
analogous
#2F7C86 #2F5186 #392F86
triadic
#2F5186 #862F51 #51862F
tetradic
#2F5186 #862F7C #86642F #2F8639
square
#2F5186 #862F7C #86642F #2F8639
split-complementary
#2F5186 #86392F #7C862F
monochromatic
#0F1A2B #1F3659 #2F5186 #3F6CB3 #668DC9

Accessibility & contrast

On white

7.95
#2F5186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5186
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5186#FFFFFF#000000##FFFFFF
##2F51861.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5588
Deuteranopia (green-blind)
#2E4D85
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5186;
/* rgb */ color: rgb(47, 81, 134);
/* oklch */ color: oklch(43.6% 0.097 259.0);
Tailwind
colors: {
  custom: {
    50: '#7081a9',
    500: '#2f5186',
    950: '#000000',
  },
}
SCSS
$custom: #2f5186;
$custom-light: #7081a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5186",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 134
  },
  "hsl": {
    "h": 216.552,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43618,
    "c": 0.09659,
    "h": 259
  },
  "luminance": 0.0821
}

Semantic roles & 50–950 ramp

primary
#2F5186
secondary
#B09160
accent
#A350D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F5186

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

Preview Lab → · Contrast checker → · Palette generator →

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