#2F4784#2F4784

#2F4784 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.2% C 0.106 H 265.8°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2F4784
RGBrgb(47, 71, 132)
HSLhsl(223, 47%, 35%)
HSVhsv(223, 64%, 52%)
CMYKcmyk(64.4%, 46.2%, 0%, 48.2%)
CIE-LABlab(31.29, 11.46, -37.11)
CIE-LCHlch(31.29, 38.84, 287.16°)
OKLaboklab(41.17% -0.0078 -0.1059)
OKLCHoklch(41.17% 0.106 265.8)
XYZxyz(7.5890, 6.7761, 22.7333)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4784 #846C2F
analogous
#2F7184 #2F4784 #422F84
triadic
#2F4784 #842F47 #47842F
tetradic
#2F4784 #842F71 #846C2F #2F8442
square
#2F4784 #842F71 #846C2F #2F8442
split-complementary
#2F4784 #84422F #71842F
monochromatic
#0F162A #1F2F57 #2F4784 #3F5FB1 #6581C8

Accessibility & contrast

On white

8.92
#2F4784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2F4784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4784
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4784#FFFFFF#000000##FFFFFF
##2F47841.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4E86
Deuteranopia (green-blind)
#1D4683
Tritanopia (blue-blind)
#00555F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f4784;
/* rgb */ color: rgb(47, 71, 132);
/* oklch */ color: oklch(41.2% 0.106 265.8);
Tailwind
colors: {
  custom: {
    50: '#7079a8',
    500: '#2f4784',
    950: '#000000',
  },
}
SCSS
$custom: #2f4784;
$custom-light: #7079a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4784",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 132
  },
  "hsl": {
    "h": 223.059,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41167,
    "c": 0.10622,
    "h": 265.8
  },
  "luminance": 0.06777
}

Semantic roles & 50–950 ramp

primary
#2F4784
secondary
#AF9960
accent
#B151D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4784

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

Preview Lab → · Contrast checker → · Palette generator →

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