#2F4D7E#2F4D7E

#2F4D7E is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.2% C 0.090 H 259.8°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#2F4D7E
RGBrgb(47, 77, 126)
HSLhsl(217, 46%, 34%)
HSVhsv(217, 63%, 49%)
CMYKcmyk(62.7%, 38.9%, 0%, 50.6%)
CIE-LABlab(32.74, 5.24, -31.09)
CIE-LCHlch(32.74, 31.53, 279.56°)
OKLaboklab(42.17% -0.0159 -0.0882)
OKLCHoklch(42.17% 0.09 259.8)
XYZxyz(7.5907, 7.4178, 20.7664)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D7E #7E602F
analogous
#2F757E #2F4D7E #392F7E
triadic
#2F4D7E #7E2F4D #4D7E2F
tetradic
#2F4D7E #7E2F75 #7E602F #2F7E39
square
#2F4D7E #7E2F75 #7E602F #2F7E39
split-complementary
#2F4D7E #7E392F #757E2F
monochromatic
#0E1725 #1E3251 #2F4D7E #4068AB #6388C5

Accessibility & contrast

On white

8.46
#2F4D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2F4D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D7E
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D7E#FFFFFF#000000##FFFFFF
##2F4D7E1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385180
Deuteranopia (green-blind)
#2D4A7D
Tritanopia (blue-blind)
#00585F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4d7e;
/* rgb */ color: rgb(47, 77, 126);
/* oklch */ color: oklch(42.2% 0.090 259.8);
Tailwind
colors: {
  custom: {
    50: '#6f7ea3',
    500: '#2f4d7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d7e;
$custom-light: #6f7ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d7e",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 126
  },
  "hsl": {
    "h": 217.215,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42168,
    "c": 0.08962,
    "h": 259.8
  },
  "luminance": 0.07418
}

Semantic roles & 50–950 ramp

primary
#2F4D7E
secondary
#AC8E5D
accent
#A452D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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