#2F558B#2F558B

#2F558B is a dark, moderate blue. Relative luminance 0.090; OKLCH L 44.9% C 0.099 H 257.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#2F558B
RGBrgb(47, 85, 139)
HSLhsl(215, 49%, 36%)
HSVhsv(215, 66%, 55%)
CMYKcmyk(66.2%, 38.8%, 0%, 45.5%)
CIE-LABlab(35.92, 4.79, -34.05)
CIE-LCHlch(35.92, 34.38, 278.01°)
OKLaboklab(44.88% -0.0216 -0.0967)
OKLCHoklch(44.88% 0.099 257.4)
XYZxyz(9.0793, 8.9645, 25.6729)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F558B #8B652F
analogous
#2F838B #2F558B #372F8B
triadic
#2F558B #8B2F55 #558B2F
tetradic
#2F558B #8B2F83 #8B652F #2F8B37
square
#2F558B #8B2F83 #8B652F #2F8B37
split-complementary
#2F558B #8B372F #838B2F
monochromatic
#101D30 #20395D #2F558B #3E71B9 #6892CC

Accessibility & contrast

On white

7.52
#2F558B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2F558B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F558B
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F558B#FFFFFF#000000##FFFFFF
##2F558B1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D598D
Deuteranopia (green-blind)
#30518A
Tritanopia (blue-blind)
#006169
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f558b;
/* rgb */ color: rgb(47, 85, 139);
/* oklch */ color: oklch(44.9% 0.099 257.4);
Tailwind
colors: {
  custom: {
    50: '#7184ad',
    500: '#2f558b',
    950: '#000000',
  },
}
SCSS
$custom: #2f558b;
$custom-light: #7184ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f558b",
  "rgb": {
    "r": 47,
    "g": 85,
    "b": 139
  },
  "hsl": {
    "h": 215.217,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44877,
    "c": 0.09913,
    "h": 257.4
  },
  "luminance": 0.08965
}

Semantic roles & 50–950 ramp

primary
#2F558B
secondary
#B39263
accent
#A04FD9
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F558B

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

Preview Lab → · Contrast checker → · Palette generator →

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