#2F4C87#2F4C87

#2F4C87 is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.5% C 0.104 H 263.0°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#2F4C87
RGBrgb(47, 76, 135)
HSLhsl(220, 48%, 36%)
HSVhsv(220, 65%, 53%)
CMYKcmyk(65.2%, 43.7%, 0%, 47.1%)
CIE-LABlab(32.97, 9.23, -36.29)
CIE-LCHlch(32.97, 37.44, 284.27°)
OKLaboklab(42.52% -0.0127 -0.1034)
OKLCHoklch(42.52% 0.104 263)
XYZxyz(8.1284, 7.5217, 23.9405)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C87 #876A2F
analogous
#2F7887 #2F4C87 #3E2F87
triadic
#2F4C87 #872F4C #4C872F
tetradic
#2F4C87 #872F78 #876A2F #2F873E
square
#2F4C87 #872F78 #876A2F #2F873E
split-complementary
#2F4C87 #873E2F #78872F
monochromatic
#0F192C #1F325A #2F4C87 #3F66B4 #6687CA

Accessibility & contrast

On white

8.39
#2F4C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F4C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4C87
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4C87#FFFFFF#000000##FFFFFF
##2F4C871.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315289
Deuteranopia (green-blind)
#244A86
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4c87;
/* rgb */ color: rgb(47, 76, 135);
/* oklch */ color: oklch(42.5% 0.104 263.0);
Tailwind
colors: {
  custom: {
    50: '#717daa',
    500: '#2f4c87',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c87;
$custom-light: #717daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c87",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 135
  },
  "hsl": {
    "h": 220.227,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42515,
    "c": 0.10422,
    "h": 263
  },
  "luminance": 0.07522
}

Semantic roles & 50–950 ramp

primary
#2F4C87
secondary
#B19761
accent
#AB50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4C87

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

Preview Lab → · Contrast checker → · Palette generator →

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