#2F4D86#2F4D86

#2F4D86 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.7% C 0.101 H 262.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#2F4D86
RGBrgb(47, 77, 134)
HSLhsl(219, 48%, 35%)
HSVhsv(219, 65%, 53%)
CMYKcmyk(64.9%, 42.5%, 0%, 47.5%)
CIE-LABlab(33.21, 8.19, -35.29)
CIE-LCHlch(33.21, 36.23, 283.06°)
OKLaboklab(42.68% -0.014 -0.1005)
OKLCHoklch(42.68% 0.101 262.1)
XYZxyz(8.1277, 7.6326, 23.5945)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D86 #86682F
analogous
#2F7886 #2F4D86 #3C2F86
triadic
#2F4D86 #862F4D #4D862F
tetradic
#2F4D86 #862F78 #86682F #2F863C
square
#2F4D86 #862F78 #86682F #2F863C
split-complementary
#2F4D86 #863C2F #78862F
monochromatic
#0F192B #1F3359 #2F4D86 #3F67B3 #6688C9

Accessibility & contrast

On white

8.31
#2F4D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F4D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D86
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D86#FFFFFF#000000##FFFFFF
##2F4D861.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335288
Deuteranopia (green-blind)
#274A85
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4d86;
/* rgb */ color: rgb(47, 77, 134);
/* oklch */ color: oklch(42.7% 0.101 262.1);
Tailwind
colors: {
  custom: {
    50: '#717ea9',
    500: '#2f4d86',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d86;
$custom-light: #717ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d86",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 134
  },
  "hsl": {
    "h": 219.31,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4268,
    "c": 0.10147,
    "h": 262.1
  },
  "luminance": 0.07633
}

Semantic roles & 50–950 ramp

primary
#2F4D86
secondary
#B09560
accent
#A950D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F4D86

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

Preview Lab → · Contrast checker → · Palette generator →

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