#2F4F89#2F4F89

#2F4F89 is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.3% C 0.103 H 261.3°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#2F4F89
RGBrgb(47, 79, 137)
HSLhsl(219, 49%, 36%)
HSVhsv(219, 66%, 54%)
CMYKcmyk(65.7%, 42.3%, 0%, 46.3%)
CIE-LABlab(33.99, 7.98, -35.89)
CIE-LCHlch(33.99, 36.77, 282.53°)
OKLaboklab(43.34% -0.0156 -0.1022)
OKLCHoklch(43.34% 0.103 261.3)
XYZxyz(8.4820, 8.0017, 24.7595)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F89 #89692F
analogous
#2F7C89 #2F4F89 #3C2F89
triadic
#2F4F89 #892F4F #4F892F
tetradic
#2F4F89 #892F7C #89692F #2F893C
square
#2F4F89 #892F7C #89692F #2F893C
split-complementary
#2F4F89 #893C2F #7C892F
monochromatic
#101A2E #1F355B #2F4F89 #3F69B7 #678BCB

Accessibility & contrast

On white

8.08
#2F4F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2F4F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F89
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F89#FFFFFF#000000##FFFFFF
##2F4F891.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35548B
Deuteranopia (green-blind)
#274C88
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4f89;
/* rgb */ color: rgb(47, 79, 137);
/* oklch */ color: oklch(43.3% 0.103 261.3);
Tailwind
colors: {
  custom: {
    50: '#717fac',
    500: '#2f4f89',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f89;
$custom-light: #717fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f89",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 137
  },
  "hsl": {
    "h": 218.667,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43342,
    "c": 0.10341,
    "h": 261.3
  },
  "luminance": 0.08002
}

Semantic roles & 50–950 ramp

primary
#2F4F89
secondary
#B29562
accent
#A84FD8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4F89

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

Preview Lab → · Contrast checker → · Palette generator →

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