#2F4F94#2F4F94

#2F4F94 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 44.1% C 0.119 H 263.6°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#2F4F94
RGBrgb(47, 79, 148)
HSLhsl(221, 52%, 38%)
HSVhsv(221, 68%, 58%)
CMYKcmyk(68.2%, 46.6%, 0%, 42%)
CIE-LABlab(34.67, 12.10, -41.51)
CIE-LCHlch(34.67, 43.24, 286.25°)
OKLaboklab(44.09% -0.0134 -0.1187)
OKLCHoklch(44.09% 0.12 263.6)
XYZxyz(9.3117, 8.3335, 29.1290)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F94 #94742F
analogous
#2F8194 #2F4F94 #412F94
triadic
#2F4F94 #942F4F #4F942F
tetradic
#2F4F94 #942F81 #94742F #2F9441
square
#2F4F94 #942F81 #94742F #2F9441
split-complementary
#2F4F94 #94412F #81942F
monochromatic
#111D37 #203666 #2F4F94 #3E68C2 #6D8CD1

Accessibility & contrast

On white

7.87
#2F4F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2F4F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F94
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F94#FFFFFF#000000##FFFFFF
##2F4F941.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5697
Deuteranopia (green-blind)
#1A4D93
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4f94;
/* rgb */ color: rgb(47, 79, 148);
/* oklch */ color: oklch(44.1% 0.119 263.6);
Tailwind
colors: {
  custom: {
    50: '#737fb4',
    500: '#2f4f94',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f94;
$custom-light: #737fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f94",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 148
  },
  "hsl": {
    "h": 220.99,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44088,
    "c": 0.1195,
    "h": 263.6
  },
  "luminance": 0.08334
}

Semantic roles & 50–950 ramp

primary
#2F4F94
secondary
#B89E67
accent
#AE4DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F4F94

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

Preview Lab → · Contrast checker → · Palette generator →

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