#2F4F97#2F4F97

#2F4F97 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.124 H 264.0°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#2F4F97
RGBrgb(47, 79, 151)
HSLhsl(222, 53%, 39%)
HSVhsv(222, 69%, 59%)
CMYKcmyk(68.9%, 47.7%, 0%, 40.8%)
CIE-LABlab(34.86, 13.23, -43.02)
CIE-LCHlch(34.86, 45.01, 287.10°)
OKLaboklab(44.3% -0.0129 -0.1232)
OKLCHoklch(44.3% 0.124 264)
XYZxyz(9.5522, 8.4297, 30.3958)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F97 #97772F
analogous
#2F8397 #2F4F97 #432F97
triadic
#2F4F97 #972F4F #4F972F
tetradic
#2F4F97 #972F83 #97772F #2F9743
square
#2F4F97 #972F83 #97772F #2F9743
split-complementary
#2F4F97 #97432F #83972F
monochromatic
#121E3A #203768 #2F4F97 #4068C3 #6E8DD2

Accessibility & contrast

On white

7.82
#2F4F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2F4F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F97
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F97#FFFFFF#000000##FFFFFF
##2F4F971.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#144E96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4f97;
/* rgb */ color: rgb(47, 79, 151);
/* oklch */ color: oklch(44.3% 0.124 264.0);
Tailwind
colors: {
  custom: {
    50: '#747fb6',
    500: '#2f4f97',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f97;
$custom-light: #747fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f97",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 221.538,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44299,
    "c": 0.12385,
    "h": 264
  },
  "luminance": 0.08431
}

Semantic roles & 50–950 ramp

primary
#2F4F97
secondary
#B9A068
accent
#B04CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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