#2F4B79#2F4B79

#2F4B79 is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.4% C 0.085 H 259.9°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2F4B79
RGBrgb(47, 75, 121)
HSLhsl(217, 44%, 33%)
HSVhsv(217, 61%, 47%)
CMYKcmyk(61.2%, 38%, 0%, 52.5%)
CIE-LABlab(31.84, 4.73, -29.40)
CIE-LCHlch(31.84, 29.77, 279.14°)
OKLaboklab(41.38% -0.0149 -0.0833)
OKLCHoklch(41.38% 0.085 259.9)
XYZxyz(7.1384, 7.0164, 19.0636)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4B79 #795D2F
analogous
#2F7079 #2F4B79 #382F79
triadic
#2F4B79 #792F4B #4B792F
tetradic
#2F4B79 #792F70 #795D2F #2F7938
square
#2F4B79 #792F70 #795D2F #2F7938
split-complementary
#2F4B79 #79382F #70792F
monochromatic
#0D1421 #1E304D #2F4B79 #4066A5 #6185C2

Accessibility & contrast

On white

8.74
#2F4B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F4B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4B79
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4B79#FFFFFF#000000##FFFFFF
##2F4B791.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384F7B
Deuteranopia (green-blind)
#2E4878
Tritanopia (blue-blind)
#00555C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f4b79;
/* rgb */ color: rgb(47, 75, 121);
/* oklch */ color: oklch(41.4% 0.085 259.9);
Tailwind
colors: {
  custom: {
    50: '#6e7da0',
    500: '#2f4b79',
    950: '#000000',
  },
}
SCSS
$custom: #2f4b79;
$custom-light: #6e7da0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4b79",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 121
  },
  "hsl": {
    "h": 217.297,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.4138,
    "c": 0.08459,
    "h": 259.9
  },
  "luminance": 0.07017
}

Semantic roles & 50–950 ramp

primary
#2F4B79
secondary
#A88B5B
accent
#A354D4
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #2F4B79

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

Preview Lab → · Contrast checker → · Palette generator →

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