#2F4A82#2F4A82

#2F4A82 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.7% C 0.099 H 263.3°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2F4A82
RGBrgb(47, 74, 130)
HSLhsl(220, 47%, 35%)
HSVhsv(220, 64%, 51%)
CMYKcmyk(63.8%, 43.1%, 0%, 49%)
CIE-LABlab(32.06, 8.70, -34.64)
CIE-LCHlch(32.06, 35.72, 284.10°)
OKLaboklab(41.72% -0.0115 -0.0986)
OKLCHoklch(41.72% 0.099 263.3)
XYZxyz(7.6489, 7.1129, 22.0846)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4A82 #82672F
analogous
#2F7482 #2F4A82 #3E2F82
triadic
#2F4A82 #822F4A #4A822F
tetradic
#2F4A82 #822F74 #82672F #2F823E
square
#2F4A82 #822F74 #82672F #2F823E
split-complementary
#2F4A82 #823E2F #74822F
monochromatic
#0E1728 #1F3055 #2F4A82 #3F64AF #6484C7

Accessibility & contrast

On white

8.67
#2F4A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2F4A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4A82
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4A82#FFFFFF#000000##FFFFFF
##2F4A821.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315084
Deuteranopia (green-blind)
#254881
Tritanopia (blue-blind)
#00575F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f4a82;
/* rgb */ color: rgb(47, 74, 130);
/* oklch */ color: oklch(41.7% 0.099 263.3);
Tailwind
colors: {
  custom: {
    50: '#707ca7',
    500: '#2f4a82',
    950: '#000000',
  },
}
SCSS
$custom: #2f4a82;
$custom-light: #707ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4a82",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 130
  },
  "hsl": {
    "h": 220.482,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4172,
    "c": 0.09931,
    "h": 263.3
  },
  "luminance": 0.07114
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4A82

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

Preview Lab → · Contrast checker → · Palette generator →

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