#2F4E80#2F4E80

#2F4E80 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.5% C 0.091 H 259.5°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#2F4E80
RGBrgb(47, 78, 128)
HSLhsl(217, 46%, 34%)
HSVhsv(217, 63%, 50%)
CMYKcmyk(63.3%, 39.1%, 0%, 49.8%)
CIE-LABlab(33.16, 5.31, -31.66)
CIE-LCHlch(33.16, 32.11, 279.52°)
OKLaboklab(42.53% -0.0166 -0.0899)
OKLCHoklch(42.53% 0.091 259.5)
XYZxyz(7.7916, 7.6109, 21.4763)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E80 #80612F
analogous
#2F7780 #2F4E80 #392F80
triadic
#2F4E80 #802F4E #4E802F
tetradic
#2F4E80 #802F77 #80612F #2F8039
square
#2F4E80 #802F77 #80612F #2F8039
split-complementary
#2F4E80 #80392F #77802F
monochromatic
#0E1726 #1F3353 #2F4E80 #3F69AD #6389C6

Accessibility & contrast

On white

8.33
#2F4E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2F4E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E80
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E80#FFFFFF#000000##FFFFFF
##2F4E801.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395282
Deuteranopia (green-blind)
#2E4B7F
Tritanopia (blue-blind)
#005961
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4e80;
/* rgb */ color: rgb(47, 78, 128);
/* oklch */ color: oklch(42.5% 0.091 259.5);
Tailwind
colors: {
  custom: {
    50: '#6f7fa5',
    500: '#2f4e80',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e80;
$custom-light: #6f7fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e80",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 128
  },
  "hsl": {
    "h": 217.037,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4253,
    "c": 0.09138,
    "h": 259.5
  },
  "luminance": 0.07612
}

Semantic roles & 50–950 ramp

primary
#2F4E80
secondary
#AD8F5E
accent
#A352D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F4E80

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

Preview Lab → · Contrast checker → · Palette generator →

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