#2F4C8D#2F4C8D

#2F4C8D is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.113 H 264.1°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2F4C8D
RGBrgb(47, 76, 141)
HSLhsl(221, 50%, 37%)
HSVhsv(221, 67%, 55%)
CMYKcmyk(66.7%, 46.1%, 0%, 44.7%)
CIE-LABlab(33.34, 11.47, -39.37)
CIE-LCHlch(33.34, 41.01, 286.24°)
OKLaboklab(42.92% -0.0116 -0.1125)
OKLCHoklch(42.92% 0.113 264.1)
XYZxyz(8.5628, 7.6955, 26.2283)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C8D #8D702F
analogous
#2F7B8D #2F4C8D #412F8D
triadic
#2F4C8D #8D2F4C #4C8D2F
tetradic
#2F4C8D #8D2F7B #8D702F #2F8D41
square
#2F4C8D #8D2F7B #8D702F #2F8D41
split-complementary
#2F4C8D #8D412F #7B8D2F
monochromatic
#101B31 #20335F #2F4C8D #3E65BB #6988CD

Accessibility & contrast

On white

8.27
#2F4C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2F4C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4C8D
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4C8D#FFFFFF#000000##FFFFFF
##2F4C8D1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D538F
Deuteranopia (green-blind)
#1C4A8C
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4c8d;
/* rgb */ color: rgb(47, 76, 141);
/* oklch */ color: oklch(42.9% 0.113 264.1);
Tailwind
colors: {
  custom: {
    50: '#727daf',
    500: '#2f4c8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c8d;
$custom-light: #727daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c8d",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 141
  },
  "hsl": {
    "h": 221.489,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42924,
    "c": 0.11308,
    "h": 264.1
  },
  "luminance": 0.07696
}

Semantic roles & 50–950 ramp

primary
#2F4C8D
secondary
#B49B64
accent
#AF4EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #2F4C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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