#2F4F85#2F4F85

#2F4F85 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.098 H 260.3°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#2F4F85
RGBrgb(47, 79, 133)
HSLhsl(218, 48%, 35%)
HSVhsv(218, 65%, 52%)
CMYKcmyk(64.7%, 40.6%, 0%, 47.8%)
CIE-LABlab(33.75, 6.49, -33.81)
CIE-LCHlch(33.75, 34.43, 280.87°)
OKLaboklab(43.08% -0.0165 -0.0961)
OKLCHoklch(43.08% 0.098 260.3)
XYZxyz(8.2004, 7.8890, 23.2763)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F85 #85652F
analogous
#2F7A85 #2F4F85 #3A2F85
triadic
#2F4F85 #852F4F #4F852F
tetradic
#2F4F85 #852F7A #85652F #2F853A
square
#2F4F85 #852F7A #85652F #2F853A
split-complementary
#2F4F85 #853A2F #7A852F
monochromatic
#0F192B #1F3458 #2F4F85 #3F6AB2 #668BC9

Accessibility & contrast

On white

8.15
#2F4F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2F4F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F85
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F85#FFFFFF#000000##FFFFFF
##2F4F851.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375487
Deuteranopia (green-blind)
#2B4C84
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4f85;
/* rgb */ color: rgb(47, 79, 133);
/* oklch */ color: oklch(43.1% 0.098 260.3);
Tailwind
colors: {
  custom: {
    50: '#7080a9',
    500: '#2f4f85',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f85;
$custom-light: #7080a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f85",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 133
  },
  "hsl": {
    "h": 217.674,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43083,
    "c": 0.09753,
    "h": 260.3
  },
  "luminance": 0.0789
}

Semantic roles & 50–950 ramp

primary
#2F4F85
secondary
#B09260
accent
#A550D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4F85

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

Preview Lab → · Contrast checker → · Palette generator →

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