#2F4787#2F4787

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

Color values

HEX#2F4787
RGBrgb(47, 71, 135)
HSLhsl(224, 48%, 36%)
HSVhsv(224, 65%, 53%)
CMYKcmyk(65.2%, 47.4%, 0%, 47.1%)
CIE-LABlab(31.48, 12.58, -38.66)
CIE-LCHlch(31.48, 40.65, 288.03°)
OKLaboklab(41.38% -0.0073 -0.1105)
OKLCHoklch(41.38% 0.111 266.2)
XYZxyz(7.7972, 6.8594, 23.8301)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4787 #876F2F
analogous
#2F7387 #2F4787 #432F87
triadic
#2F4787 #872F47 #47872F
tetradic
#2F4787 #872F73 #876F2F #2F8743
square
#2F4787 #872F73 #876F2F #2F8743
split-complementary
#2F4787 #87432F #73872F
monochromatic
#0F172C #1F2F5A #2F4787 #3F5FB4 #6682CA

Accessibility & contrast

On white

8.85
#2F4787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F4787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4787
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4787#FFFFFF#000000##FFFFFF
##2F47871.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E89
Deuteranopia (green-blind)
#194686
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f4787;
/* rgb */ color: rgb(47, 71, 135);
/* oklch */ color: oklch(41.4% 0.111 266.2);
Tailwind
colors: {
  custom: {
    50: '#7179aa',
    500: '#2f4787',
    950: '#000000',
  },
}
SCSS
$custom: #2f4787;
$custom-light: #7179aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4787",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 223.636,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41377,
    "c": 0.11071,
    "h": 266.2
  },
  "luminance": 0.0686
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4787

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

Preview Lab → · Contrast checker → · Palette generator →

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