#2F4788#2F4788

#2F4788 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.4% C 0.112 H 266.4°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#2F4788
RGBrgb(47, 71, 136)
HSLhsl(224, 49%, 36%)
HSVhsv(224, 65%, 53%)
CMYKcmyk(65.4%, 47.8%, 0%, 46.7%)
CIE-LABlab(31.55, 12.95, -39.17)
CIE-LCHlch(31.55, 41.26, 288.30°)
OKLaboklab(41.45% -0.0071 -0.112)
OKLCHoklch(41.45% 0.112 266.4)
XYZxyz(7.8679, 6.8877, 24.2026)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4788 #88702F
analogous
#2F7388 #2F4788 #432F88
triadic
#2F4788 #882F47 #47882F
tetradic
#2F4788 #882F73 #88702F #2F8843
square
#2F4788 #882F73 #88702F #2F8843
split-complementary
#2F4788 #88432F #73882F
monochromatic
#10182D #1F2F5B #2F4788 #3F5FB5 #6782CA

Accessibility & contrast

On white

8.83
#2F4788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2F4788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4788
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4788#FFFFFF#000000##FFFFFF
##2F47881.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274F8A
Deuteranopia (green-blind)
#174687
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f4788;
/* rgb */ color: rgb(47, 71, 136);
/* oklch */ color: oklch(41.4% 0.112 266.4);
Tailwind
colors: {
  custom: {
    50: '#7179ab',
    500: '#2f4788',
    950: '#000000',
  },
}
SCSS
$custom: #2f4788;
$custom-light: #7179ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4788",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 136
  },
  "hsl": {
    "h": 223.82,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41448,
    "c": 0.1122,
    "h": 266.4
  },
  "luminance": 0.06888
}

Semantic roles & 50–950 ramp

primary
#2F4788
secondary
#B19C61
accent
#B350D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4788

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

Preview Lab → · Contrast checker → · Palette generator →

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