#2F4E85#2F4E85

#2F4E85 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.099 H 261.0°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#2F4E85
RGBrgb(47, 78, 133)
HSLhsl(218, 48%, 35%)
HSVhsv(218, 65%, 52%)
CMYKcmyk(64.7%, 41.4%, 0%, 47.8%)
CIE-LABlab(33.45, 7.16, -34.29)
CIE-LCHlch(33.45, 35.03, 281.79°)
OKLaboklab(42.85% -0.0154 -0.0975)
OKLCHoklch(42.85% 0.099 261)
XYZxyz(8.1288, 7.7458, 23.2525)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E85 #85662F
analogous
#2F7985 #2F4E85 #3B2F85
triadic
#2F4E85 #852F4E #4E852F
tetradic
#2F4E85 #852F79 #85662F #2F853B
square
#2F4E85 #852F79 #85662F #2F853B
split-complementary
#2F4E85 #853B2F #79852F
monochromatic
#0F192B #1F3358 #2F4E85 #3F69B2 #6689C9

Accessibility & contrast

On white

8.24
#2F4E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2F4E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E85
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E85#FFFFFF#000000##FFFFFF
##2F4E851.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365387
Deuteranopia (green-blind)
#294B84
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4e85;
/* rgb */ color: rgb(47, 78, 133);
/* oklch */ color: oklch(42.8% 0.099 261.0);
Tailwind
colors: {
  custom: {
    50: '#707fa9',
    500: '#2f4e85',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e85;
$custom-light: #707fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e85",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 133
  },
  "hsl": {
    "h": 218.372,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42848,
    "c": 0.09875,
    "h": 261
  },
  "luminance": 0.07747
}

Semantic roles & 50–950 ramp

primary
#2F4E85
secondary
#B09360
accent
#A750D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4E85

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

Preview Lab → · Contrast checker → · Palette generator →

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