#2F4D8E#2F4D8E

#2F4D8E is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.113 H 263.7°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2F4D8E
RGBrgb(47, 77, 142)
HSLhsl(221, 50%, 37%)
HSVhsv(221, 67%, 56%)
CMYKcmyk(66.9%, 45.8%, 0%, 44.3%)
CIE-LABlab(33.70, 11.18, -39.41)
CIE-LCHlch(33.70, 40.96, 285.83°)
OKLaboklab(43.22% -0.0124 -0.1126)
OKLCHoklch(43.22% 0.113 263.7)
XYZxyz(8.7069, 7.8643, 26.6450)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D8E #8E702F
analogous
#2F7D8E #2F4D8E #412F8E
triadic
#2F4D8E #8E2F4D #4D8E2F
tetradic
#2F4D8E #8E2F7D #8E702F #2F8E41
square
#2F4D8E #8E2F7D #8E702F #2F8E41
split-complementary
#2F4D8E #8E412F #7D8E2F
monochromatic
#111B32 #203460 #2F4D8E #3E66BC #6A89CE

Accessibility & contrast

On white

8.16
#2F4D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4D8E
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D8E#FFFFFF#000000##FFFFFF
##2F4D8E1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5490
Deuteranopia (green-blind)
#1E4B8D
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4d8e;
/* rgb */ color: rgb(47, 77, 142);
/* oklch */ color: oklch(43.2% 0.113 263.7);
Tailwind
colors: {
  custom: {
    50: '#727eaf',
    500: '#2f4d8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d8e;
$custom-light: #727eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d8e",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 142
  },
  "hsl": {
    "h": 221.053,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4322,
    "c": 0.11328,
    "h": 263.7
  },
  "luminance": 0.07865
}

Semantic roles & 50–950 ramp

primary
#2F4D8E
secondary
#B59B64
accent
#AE4EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #2F4D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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