#2F4E88#2F4E88

#2F4E88 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.0% C 0.103 H 261.8°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2F4E88
RGBrgb(47, 78, 136)
HSLhsl(219, 49%, 36%)
HSVhsv(219, 65%, 53%)
CMYKcmyk(65.4%, 42.6%, 0%, 46.7%)
CIE-LABlab(33.63, 8.27, -35.85)
CIE-LCHlch(33.63, 36.79, 282.99°)
OKLaboklab(43.04% -0.0147 -0.1021)
OKLCHoklch(43.04% 0.103 261.8)
XYZxyz(8.3391, 7.8299, 24.3596)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E88 #88692F
analogous
#2F7A88 #2F4E88 #3C2F88
triadic
#2F4E88 #882F4E #4E882F
tetradic
#2F4E88 #882F7A #88692F #2F883C
square
#2F4E88 #882F7A #88692F #2F883C
split-complementary
#2F4E88 #883C2F #7A882F
monochromatic
#101A2D #1F345B #2F4E88 #3F68B5 #678ACA

Accessibility & contrast

On white

8.18
#2F4E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F4E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E88
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E88#FFFFFF#000000##FFFFFF
##2F4E881.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34548A
Deuteranopia (green-blind)
#274B87
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4e88;
/* rgb */ color: rgb(47, 78, 136);
/* oklch */ color: oklch(43.0% 0.103 261.8);
Tailwind
colors: {
  custom: {
    50: '#717fab',
    500: '#2f4e88',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e88;
$custom-light: #717fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e88",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 136
  },
  "hsl": {
    "h": 219.101,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43044,
    "c": 0.10318,
    "h": 261.8
  },
  "luminance": 0.07831
}

Semantic roles & 50–950 ramp

primary
#2F4E88
secondary
#B19661
accent
#A950D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4E88

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

Preview Lab → · Contrast checker → · Palette generator →

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