#2F4F83#2F4F83

#2F4F83 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.0% C 0.095 H 259.7°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2F4F83
RGBrgb(47, 79, 131)
HSLhsl(217, 47%, 35%)
HSVhsv(217, 64%, 51%)
CMYKcmyk(64.1%, 39.7%, 0%, 48.6%)
CIE-LABlab(33.64, 5.76, -32.76)
CIE-LCHlch(33.64, 33.26, 279.97°)
OKLaboklab(42.96% -0.017 -0.0931)
OKLCHoklch(42.96% 0.095 259.7)
XYZxyz(8.0636, 7.8343, 22.5556)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F83 #83632F
analogous
#2F7983 #2F4F83 #392F83
triadic
#2F4F83 #832F4F #4F832F
tetradic
#2F4F83 #832F79 #83632F #2F8339
square
#2F4F83 #832F79 #83632F #2F8339
split-complementary
#2F4F83 #83392F #79832F
monochromatic
#0F1929 #1F3456 #2F4F83 #3F6AB0 #658AC8

Accessibility & contrast

On white

8.18
#2F4F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F4F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F83
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F83#FFFFFF#000000##FFFFFF
##2F4F831.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385385
Deuteranopia (green-blind)
#2D4B82
Tritanopia (blue-blind)
#005B62
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4f83;
/* rgb */ color: rgb(47, 79, 131);
/* oklch */ color: oklch(43.0% 0.095 259.7);
Tailwind
colors: {
  custom: {
    50: '#7080a7',
    500: '#2f4f83',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f83;
$custom-light: #7080a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f83",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 131
  },
  "hsl": {
    "h": 217.143,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42956,
    "c": 0.09459,
    "h": 259.7
  },
  "luminance": 0.07835
}

Semantic roles & 50–950 ramp

primary
#2F4F83
secondary
#AF905F
accent
#A451D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F4F83

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

Preview Lab → · Contrast checker → · Palette generator →

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