#2F4E89#2F4E89

#2F4E89 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.105 H 262.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#2F4E89
RGBrgb(47, 78, 137)
HSLhsl(219, 49%, 36%)
HSVhsv(219, 66%, 54%)
CMYKcmyk(65.7%, 43.1%, 0%, 46.3%)
CIE-LABlab(33.69, 8.64, -36.37)
CIE-LCHlch(33.69, 37.38, 283.37°)
OKLaboklab(43.11% -0.0145 -0.1036)
OKLCHoklch(43.11% 0.105 262)
XYZxyz(8.4105, 7.8585, 24.7357)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E89 #896A2F
analogous
#2F7B89 #2F4E89 #3D2F89
triadic
#2F4E89 #892F4E #4E892F
tetradic
#2F4E89 #892F7B #896A2F #2F893D
square
#2F4E89 #892F7B #896A2F #2F893D
split-complementary
#2F4E89 #893D2F #7B892F
monochromatic
#101A2E #1F345B #2F4E89 #3F68B7 #678ACB

Accessibility & contrast

On white

8.17
#2F4E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F4E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E89
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E89#FFFFFF#000000##FFFFFF
##2F4E891.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548B
Deuteranopia (green-blind)
#264B88
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4e89;
/* rgb */ color: rgb(47, 78, 137);
/* oklch */ color: oklch(43.1% 0.105 262.0);
Tailwind
colors: {
  custom: {
    50: '#717fac',
    500: '#2f4e89',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e89;
$custom-light: #717fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e89",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 137
  },
  "hsl": {
    "h": 219.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4311,
    "c": 0.10466,
    "h": 262
  },
  "luminance": 0.07859
}

Semantic roles & 50–950 ramp

primary
#2F4E89
secondary
#B29662
accent
#A94FD8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4E89

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

Preview Lab → · Contrast checker → · Palette generator →

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