#2F4A84#2F4A84

#2F4A84 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.9% C 0.102 H 263.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#2F4A84
RGBrgb(47, 74, 132)
HSLhsl(221, 47%, 35%)
HSVhsv(221, 64%, 52%)
CMYKcmyk(64.4%, 43.9%, 0%, 48.2%)
CIE-LABlab(32.18, 9.45, -35.69)
CIE-LCHlch(32.18, 36.91, 284.83°)
OKLaboklab(41.85% -0.0111 -0.1017)
OKLCHoklch(41.85% 0.102 263.8)
XYZxyz(7.7845, 7.1671, 22.7985)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A84 #84692F
analogous
#2F7584 #2F4A84 #3E2F84
triadic
#2F4A84 #842F4A #4A842F
tetradic
#2F4A84 #842F75 #84692F #2F843E
square
#2F4A84 #842F75 #84692F #2F843E
split-complementary
#2F4A84 #843E2F #75842F
monochromatic
#0F172A #1F3157 #2F4A84 #3F63B1 #6585C8

Accessibility & contrast

On white

8.63
#2F4A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F4A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4A84
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A84#FFFFFF#000000##FFFFFF
##2F4A841.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305086
Deuteranopia (green-blind)
#234883
Tritanopia (blue-blind)
#005760
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4a84;
/* rgb */ color: rgb(47, 74, 132);
/* oklch */ color: oklch(41.9% 0.102 263.8);
Tailwind
colors: {
  custom: {
    50: '#707ca8',
    500: '#2f4a84',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a84;
$custom-light: #707ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a84",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 132
  },
  "hsl": {
    "h": 220.941,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41853,
    "c": 0.10231,
    "h": 263.8
  },
  "luminance": 0.07168
}

Semantic roles & 50–950 ramp

primary
#2F4A84
secondary
#AF9660
accent
#AC51D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4A84

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

Preview Lab → · Contrast checker → · Palette generator →

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