#2F4F99#2F4F99

#2F4F99 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.127 H 264.3°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#2F4F99
RGBrgb(47, 79, 153)
HSLhsl(222, 53%, 39%)
HSVhsv(222, 69%, 60%)
CMYKcmyk(69.3%, 48.4%, 0%, 40%)
CIE-LABlab(34.99, 13.99, -44.02)
CIE-LCHlch(34.99, 46.19, 287.63°)
OKLaboklab(44.44% -0.0126 -0.1261)
OKLCHoklch(44.44% 0.127 264.3)
XYZxyz(9.7160, 8.4952, 31.2585)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F99 #99792F
analogous
#2F8499 #2F4F99 #442F99
triadic
#2F4F99 #992F4F #4F992F
tetradic
#2F4F99 #992F84 #99792F #2F9944
square
#2F4F99 #992F84 #99792F #2F9944
split-complementary
#2F4F99 #99442F #84992F
monochromatic
#121F3B #21376A #2F4F99 #4168C5 #6F8ED3

Accessibility & contrast

On white

7.78
#2F4F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2F4F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F99
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F99#FFFFFF#000000##FFFFFF
##2F4F991.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28579C
Deuteranopia (green-blind)
#104E97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4f99;
/* rgb */ color: rgb(47, 79, 153);
/* oklch */ color: oklch(44.4% 0.127 264.3);
Tailwind
colors: {
  custom: {
    50: '#747fb7',
    500: '#2f4f99',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f99;
$custom-light: #747fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f99",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 153
  },
  "hsl": {
    "h": 221.887,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44442,
    "c": 0.12674,
    "h": 264.3
  },
  "luminance": 0.08496
}

Semantic roles & 50–950 ramp

primary
#2F4F99
secondary
#BAA269
accent
#B14BDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F4F99

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

Preview Lab → · Contrast checker → · Palette generator →

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