#2F5188#2F5188

#2F5188 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.7% C 0.100 H 259.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#2F5188
RGBrgb(47, 81, 136)
HSLhsl(217, 49%, 36%)
HSVhsv(217, 65%, 53%)
CMYKcmyk(65.4%, 40.4%, 0%, 46.7%)
CIE-LABlab(34.53, 6.29, -34.41)
CIE-LCHlch(34.53, 34.98, 280.36°)
OKLaboklab(43.75% -0.018 -0.0979)
OKLCHoklch(43.75% 0.1 259.6)
XYZxyz(8.5571, 8.2660, 24.4323)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5188 #88662F
analogous
#2F7D88 #2F5188 #392F88
triadic
#2F5188 #882F51 #51882F
tetradic
#2F5188 #882F7D #88662F #2F8839
square
#2F5188 #882F7D #88662F #2F8839
split-complementary
#2F5188 #88392F #7D882F
monochromatic
#101B2D #1F365B #2F5188 #3F6CB5 #678DCA

Accessibility & contrast

On white

7.91
#2F5188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2F5188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5188
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5188#FFFFFF#000000##FFFFFF
##2F51881.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39568A
Deuteranopia (green-blind)
#2C4D87
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5188;
/* rgb */ color: rgb(47, 81, 136);
/* oklch */ color: oklch(43.7% 0.100 259.6);
Tailwind
colors: {
  custom: {
    50: '#7181ab',
    500: '#2f5188',
    950: '#000000',
  },
}
SCSS
$custom: #2f5188;
$custom-light: #7181ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5188",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 136
  },
  "hsl": {
    "h": 217.079,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43745,
    "c": 0.09951,
    "h": 259.6
  },
  "luminance": 0.08267
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5188

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

Preview Lab → · Contrast checker → · Palette generator →

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