#2F4C81#2F4C81

#2F4C81 is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.1% C 0.095 H 261.5°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#2F4C81
RGBrgb(47, 76, 129)
HSLhsl(219, 47%, 35%)
HSVhsv(219, 64%, 51%)
CMYKcmyk(63.6%, 41.1%, 0%, 49.4%)
CIE-LABlab(32.61, 7.00, -33.16)
CIE-LCHlch(32.61, 33.89, 281.92°)
OKLaboklab(42.12% -0.014 -0.0943)
OKLCHoklch(42.12% 0.095 261.5)
XYZxyz(7.7178, 7.3575, 21.7780)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C81 #81642F
analogous
#2F7581 #2F4C81 #3B2F81
triadic
#2F4C81 #812F4C #4C812F
tetradic
#2F4C81 #812F75 #81642F #2F813B
square
#2F4C81 #812F75 #81642F #2F813B
split-complementary
#2F4C81 #813B2F #75812F
monochromatic
#0E1727 #1F3254 #2F4C81 #3F66AE #6487C6

Accessibility & contrast

On white

8.50
#2F4C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2F4C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4C81
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4C81#FFFFFF#000000##FFFFFF
##2F4C811.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355183
Deuteranopia (green-blind)
#294980
Tritanopia (blue-blind)
#005860
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4c81;
/* rgb */ color: rgb(47, 76, 129);
/* oklch */ color: oklch(42.1% 0.095 261.5);
Tailwind
colors: {
  custom: {
    50: '#707da6',
    500: '#2f4c81',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c81;
$custom-light: #707da6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c81",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 129
  },
  "hsl": {
    "h": 218.78,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42121,
    "c": 0.0953,
    "h": 261.5
  },
  "luminance": 0.07358
}

Semantic roles & 50–950 ramp

primary
#2F4C81
secondary
#AD915E
accent
#A752D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4C81

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

Preview Lab → · Contrast checker → · Palette generator →

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