#2F4F92#2F4F92

#2F4F92 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.9% C 0.117 H 263.2°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#2F4F92
RGBrgb(47, 79, 146)
HSLhsl(221, 51%, 38%)
HSVhsv(221, 68%, 57%)
CMYKcmyk(67.8%, 45.9%, 0%, 42.7%)
CIE-LABlab(34.54, 11.35, -40.50)
CIE-LCHlch(34.54, 42.06, 285.65°)
OKLaboklab(43.95% -0.0138 -0.1158)
OKLCHoklch(43.95% 0.117 263.2)
XYZxyz(9.1548, 8.2707, 28.3025)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F92 #92722F
analogous
#2F8092 #2F4F92 #402F92
triadic
#2F4F92 #922F4F #4F922F
tetradic
#2F4F92 #922F80 #92722F #2F9240
square
#2F4F92 #922F80 #92722F #2F9240
split-complementary
#2F4F92 #92402F #80922F
monochromatic
#111D35 #203664 #2F4F92 #3E68C0 #6C8CD0

Accessibility & contrast

On white

7.91
#2F4F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2F4F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F92
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F92#FFFFFF#000000##FFFFFF
##2F4F921.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5695
Deuteranopia (green-blind)
#1D4D91
Tritanopia (blue-blind)
#005E69
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4f92;
/* rgb */ color: rgb(47, 79, 146);
/* oklch */ color: oklch(43.9% 0.117 263.2);
Tailwind
colors: {
  custom: {
    50: '#737fb2',
    500: '#2f4f92',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f92;
$custom-light: #737fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f92",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 146
  },
  "hsl": {
    "h": 220.606,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43949,
    "c": 0.11659,
    "h": 263.2
  },
  "luminance": 0.08272
}

Semantic roles & 50–950 ramp

primary
#2F4F92
secondary
#B79D66
accent
#AD4DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F4F92

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

Preview Lab → · Contrast checker → · Palette generator →

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