#2F4F96#2F4F96

#2F4F96 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.2% C 0.122 H 263.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#2F4F96
RGBrgb(47, 79, 150)
HSLhsl(221, 52%, 39%)
HSVhsv(221, 69%, 59%)
CMYKcmyk(68.7%, 47.3%, 0%, 41.2%)
CIE-LABlab(34.80, 12.85, -42.52)
CIE-LCHlch(34.80, 44.42, 286.82°)
OKLaboklab(44.23% -0.0131 -0.1217)
OKLCHoklch(44.23% 0.122 263.9)
XYZxyz(9.4714, 8.3974, 29.9700)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F96 #96762F
analogous
#2F8296 #2F4F96 #422F96
triadic
#2F4F96 #962F4F #4F962F
tetradic
#2F4F96 #962F82 #96762F #2F9642
square
#2F4F96 #962F82 #96762F #2F9642
split-complementary
#2F4F96 #96422F #82962F
monochromatic
#121E39 #203667 #2F4F96 #3F68C3 #6E8DD2

Accessibility & contrast

On white

7.84
#2F4F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2F4F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F96
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F96#FFFFFF#000000##FFFFFF
##2F4F961.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5799
Deuteranopia (green-blind)
#164D95
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4f96;
/* rgb */ color: rgb(47, 79, 150);
/* oklch */ color: oklch(44.2% 0.122 263.9);
Tailwind
colors: {
  custom: {
    50: '#747fb5',
    500: '#2f4f96',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f96;
$custom-light: #747fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f96",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 150
  },
  "hsl": {
    "h": 221.359,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44228,
    "c": 0.12239,
    "h": 263.9
  },
  "luminance": 0.08398
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4F96

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

Preview Lab → · Contrast checker → · Palette generator →

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