#2F4E7F#2F4E7F

#2F4E7F is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.5% C 0.090 H 259.2°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2F4E7F
RGBrgb(47, 78, 127)
HSLhsl(217, 46%, 34%)
HSVhsv(217, 63%, 50%)
CMYKcmyk(63%, 38.6%, 0%, 50.2%)
CIE-LABlab(33.10, 4.94, -31.13)
CIE-LCHlch(33.10, 31.52, 279.02°)
OKLaboklab(42.47% -0.0168 -0.0883)
OKLCHoklch(42.47% 0.09 259.2)
XYZxyz(7.7261, 7.5847, 21.1314)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E7F #7F602F
analogous
#2F767F #2F4E7F #382F7F
triadic
#2F4E7F #7F2F4E #4E7F2F
tetradic
#2F4E7F #7F2F76 #7F602F #2F7F38
square
#2F4E7F #7F2F76 #7F602F #2F7F38
split-complementary
#2F4E7F #7F382F #767F2F
monochromatic
#0E1726 #1E3352 #2F4E7F #4069AC #6389C5

Accessibility & contrast

On white

8.34
#2F4E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2F4E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E7F
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E7F#FFFFFF#000000##FFFFFF
##2F4E7F1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395281
Deuteranopia (green-blind)
#2E4A7E
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4e7f;
/* rgb */ color: rgb(47, 78, 127);
/* oklch */ color: oklch(42.5% 0.090 259.2);
Tailwind
colors: {
  custom: {
    50: '#6f7fa4',
    500: '#2f4e7f',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e7f;
$custom-light: #6f7fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e7f",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 127
  },
  "hsl": {
    "h": 216.75,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42468,
    "c": 0.0899,
    "h": 259.2
  },
  "luminance": 0.07585
}

Semantic roles & 50–950 ramp

primary
#2F4E7F
secondary
#AC8E5E
accent
#A352D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F4E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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