#2F4C84#2F4C84

#2F4C84 is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.3% C 0.100 H 262.3°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#2F4C84
RGBrgb(47, 76, 132)
HSLhsl(220, 47%, 35%)
HSVhsv(220, 64%, 52%)
CMYKcmyk(64.4%, 42.4%, 0%, 48.2%)
CIE-LABlab(32.78, 8.11, -34.73)
CIE-LCHlch(32.78, 35.66, 283.15°)
OKLaboklab(42.32% -0.0134 -0.0989)
OKLCHoklch(42.32% 0.1 262.3)
XYZxyz(7.9201, 7.4384, 22.8437)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C84 #84672F
analogous
#2F7784 #2F4C84 #3C2F84
triadic
#2F4C84 #842F4C #4C842F
tetradic
#2F4C84 #842F77 #84672F #2F843C
square
#2F4C84 #842F77 #84672F #2F843C
split-complementary
#2F4C84 #843C2F #77842F
monochromatic
#0F182A #1F3257 #2F4C84 #3F66B1 #6587C8

Accessibility & contrast

On white

8.44
#2F4C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2F4C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4C84
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4C84#FFFFFF#000000##FFFFFF
##2F4C841.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335186
Deuteranopia (green-blind)
#274983
Tritanopia (blue-blind)
#005961
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f4c84;
/* rgb */ color: rgb(47, 76, 132);
/* oklch */ color: oklch(42.3% 0.100 262.3);
Tailwind
colors: {
  custom: {
    50: '#707da8',
    500: '#2f4c84',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c84;
$custom-light: #707da8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c84",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 132
  },
  "hsl": {
    "h": 219.529,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42316,
    "c": 0.09976,
    "h": 262.3
  },
  "luminance": 0.07439
}

Semantic roles & 50–950 ramp

primary
#2F4C84
secondary
#AF9460
accent
#A951D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4C84

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

Preview Lab → · Contrast checker → · Palette generator →

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