#2F4D85#2F4D85

#2F4D85 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.6% C 0.100 H 261.8°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#2F4D85
RGBrgb(47, 77, 133)
HSLhsl(219, 48%, 35%)
HSVhsv(219, 65%, 52%)
CMYKcmyk(64.7%, 42.1%, 0%, 47.8%)
CIE-LABlab(33.15, 7.82, -34.77)
CIE-LCHlch(33.15, 35.64, 282.67°)
OKLaboklab(42.61% -0.0143 -0.099)
OKLCHoklch(42.61% 0.1 261.8)
XYZxyz(8.0583, 7.6048, 23.2290)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D85 #85672F
analogous
#2F7885 #2F4D85 #3C2F85
triadic
#2F4D85 #852F4D #4D852F
tetradic
#2F4D85 #852F78 #85672F #2F853C
square
#2F4D85 #852F78 #85672F #2F853C
split-complementary
#2F4D85 #853C2F #78852F
monochromatic
#0F192B #1F3358 #2F4D85 #3F67B2 #6688C9

Accessibility & contrast

On white

8.33
#2F4D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2F4D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D85
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D85#FFFFFF#000000##FFFFFF
##2F4D851.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345287
Deuteranopia (green-blind)
#284A84
Tritanopia (blue-blind)
#005A62
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4d85;
/* rgb */ color: rgb(47, 77, 133);
/* oklch */ color: oklch(42.6% 0.100 261.8);
Tailwind
colors: {
  custom: {
    50: '#707ea9',
    500: '#2f4d85',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d85;
$custom-light: #707ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d85",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 133
  },
  "hsl": {
    "h": 219.07,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42615,
    "c": 0.09999,
    "h": 261.8
  },
  "luminance": 0.07606
}

Semantic roles & 50–950 ramp

primary
#2F4D85
secondary
#B09460
accent
#A850D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4D85

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

Preview Lab → · Contrast checker → · Palette generator →

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