#2F4D8F#2F4D8F

#2F4D8F is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.3% C 0.115 H 263.9°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#2F4D8F
RGBrgb(47, 77, 143)
HSLhsl(221, 51%, 37%)
HSVhsv(221, 67%, 56%)
CMYKcmyk(67.1%, 46.2%, 0%, 43.9%)
CIE-LABlab(33.76, 11.55, -39.92)
CIE-LCHlch(33.76, 41.56, 286.14°)
OKLaboklab(43.29% -0.0123 -0.1141)
OKLCHoklch(43.29% 0.115 263.9)
XYZxyz(8.7824, 7.8944, 27.0422)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D8F #8F712F
analogous
#2F7D8F #2F4D8F #412F8F
triadic
#2F4D8F #8F2F4D #4D8F2F
tetradic
#2F4D8F #8F2F7D #8F712F #2F8F41
square
#2F4D8F #8F2F7D #8F712F #2F8F41
split-complementary
#2F4D8F #8F412F #7D8F2F
monochromatic
#111B33 #203461 #2F4D8F #3E66BD #6A89CE

Accessibility & contrast

On white

8.14
#2F4D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2F4D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D8F
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D8F#FFFFFF#000000##FFFFFF
##2F4D8F1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5491
Deuteranopia (green-blind)
#1C4B8E
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4d8f;
/* rgb */ color: rgb(47, 77, 143);
/* oklch */ color: oklch(43.3% 0.115 263.9);
Tailwind
colors: {
  custom: {
    50: '#727eb0',
    500: '#2f4d8f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d8f;
$custom-light: #727eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d8f",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 143
  },
  "hsl": {
    "h": 221.25,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43289,
    "c": 0.11475,
    "h": 263.9
  },
  "luminance": 0.07895
}

Semantic roles & 50–950 ramp

primary
#2F4D8F
secondary
#B59C65
accent
#AE4EDA
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #2F4D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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