#2F4B84#2F4B84

#2F4B84 is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.1% C 0.101 H 263.0°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#2F4B84
RGBrgb(47, 75, 132)
HSLhsl(220, 47%, 35%)
HSVhsv(220, 64%, 52%)
CMYKcmyk(64.4%, 43.2%, 0%, 48.2%)
CIE-LABlab(32.48, 8.78, -35.21)
CIE-LCHlch(32.48, 36.29, 284.00°)
OKLaboklab(42.08% -0.0122 -0.1003)
OKLCHoklch(42.08% 0.101 263)
XYZxyz(7.8518, 7.3017, 22.8209)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4B84 #84682F
analogous
#2F7684 #2F4B84 #3D2F84
triadic
#2F4B84 #842F4B #4B842F
tetradic
#2F4B84 #842F76 #84682F #2F843D
square
#2F4B84 #842F76 #84682F #2F843D
split-complementary
#2F4B84 #843D2F #76842F
monochromatic
#0F182A #1F3157 #2F4B84 #3F65B1 #6586C8

Accessibility & contrast

On white

8.54
#2F4B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2F4B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4B84
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4B84#FFFFFF#000000##FFFFFF
##2F4B841.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315186
Deuteranopia (green-blind)
#254983
Tritanopia (blue-blind)
#005861
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4b84;
/* rgb */ color: rgb(47, 75, 132);
/* oklch */ color: oklch(42.1% 0.101 263.0);
Tailwind
colors: {
  custom: {
    50: '#707ca8',
    500: '#2f4b84',
    950: '#000000',
  },
}
SCSS
$custom: #2f4b84;
$custom-light: #707ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4b84",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 132
  },
  "hsl": {
    "h": 220.235,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42084,
    "c": 0.10102,
    "h": 263
  },
  "luminance": 0.07302
}

Semantic roles & 50–950 ramp

primary
#2F4B84
secondary
#AF9560
accent
#AB51D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4B84

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

Preview Lab → · Contrast checker → · Palette generator →

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