#2F4F8D#2F4F8D

#2F4F8D is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.6% C 0.109 H 262.3°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#2F4F8D
RGBrgb(47, 79, 141)
HSLhsl(220, 50%, 37%)
HSVhsv(220, 67%, 55%)
CMYKcmyk(66.7%, 44%, 0%, 44.7%)
CIE-LABlab(34.23, 9.47, -37.95)
CIE-LCHlch(34.23, 39.12, 284.01°)
OKLaboklab(43.61% -0.0147 -0.1083)
OKLCHoklch(43.61% 0.109 262.3)
XYZxyz(8.7743, 8.1186, 26.2988)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F8D #8D6D2F
analogous
#2F7E8D #2F4F8D #3E2F8D
triadic
#2F4F8D #8D2F4F #4F8D2F
tetradic
#2F4F8D #8D2F7E #8D6D2F #2F8D3E
square
#2F4F8D #8D2F7E #8D6D2F #2F8D3E
split-complementary
#2F4F8D #8D3E2F #7E8D2F
monochromatic
#101C31 #20355F #2F4F8D #3E69BB #698BCD

Accessibility & contrast

On white

8.00
#2F4F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2F4F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F8D
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F8D#FFFFFF#000000##FFFFFF
##2F4F8D1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32558F
Deuteranopia (green-blind)
#234C8C
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4f8d;
/* rgb */ color: rgb(47, 79, 141);
/* oklch */ color: oklch(43.6% 0.109 262.3);
Tailwind
colors: {
  custom: {
    50: '#727faf',
    500: '#2f4f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f8d;
$custom-light: #727faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f8d",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 141
  },
  "hsl": {
    "h": 219.574,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43608,
    "c": 0.10928,
    "h": 262.3
  },
  "luminance": 0.08119
}

Semantic roles & 50–950 ramp

primary
#2F4F8D
secondary
#B49964
accent
#AA4EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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